/* OVERVIEW LAYOUT - Flexible Spacing Management */

.daisy-overview {
    padding: 20px;
}

.overview-layout {
    padding: 0;
}

/* SPLITCONTENT LAYOUT - Like Core Redmine */
.overview-layout .splitcontent {
    display: block;
    width: 100%;
}

.overview-layout .splitcontentleft,
.overview-layout .splitcontentright {
    width: 49%;
    padding: 0;
}

.overview-layout .splitcontentleft {
    float: left;
    /* margin-right: 2%; */
}

.overview-layout .splitcontentright {
    float: right;
}

.overview-layout .splitcontent::after {
    content: "";
    display: table;
    clear: both;
}

/* CARD BASE STYLES */
.overview-layout .card,
.overview-layout .box {
    background: #E6F9F4;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.overview-layout .card:hover,
.overview-layout .box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* PROJECT ROLE CARD */
.project-role-card {
    background: #ecfdf5 !important;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #a8e9c8;
}

.project-role-card .card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #064e3b;
}

.role-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.role-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    font-size: 14px;
}

.role-label {
    color: #424242;
    font-weight: 600;
}

.role-value {
    color: #374151;
    text-align: justify;
    line-height: 1.6;
}

.role-value a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.role-value a:hover {
    color: #2563eb;
    text-decoration: underline;
}

span.role-value>p {
    margin: 0px;
}

/* ISSUE TRACKING CARD */
.issue-tracking-card {
    background: #eef6ff !important;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #bfdbfe;
}

.issue-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 16px;
}

.issue-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.issue-details-link {
    font-size: 13px;
    color: #3b82f6 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.issue-details-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.issue-header .columns {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    gap: 70px;
    font-size: 13px;
    color: #6b7280;
    justify-content: end;
}

.issue-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.issue-row {
    background: #ffffff !important;
    border-radius: 12px;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 1fr 180px 138px 72px;
    align-items: center;
    font-size: 14px;
    border: 1px solid #f0f9ff;
    transition: all 0.2s ease;
}

.issue-row:hover {
    background: #f8fbff;
    border-color: #bfdbfe;
}

.issue-row .tracker-name {
    font-weight: 500;
    color: #1f2937;
}

.issue-row .tracker-name a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.issue-row .tracker-name a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.issue-row a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
}

.issue-row a:hover {
    color: #3b82f6;
}

.issue-row .total {
    font-weight: 700;
    color: #1e3a8a;
}

.issue-row .total a {
    color: #1e3a8a;
    font-weight: 700;
}

.issue-row .total a:hover {
    color: #3b82f6;
}

.issue-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e7ff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.issue-footer-link {
    color: #3b82f6 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.issue-footer-link:hover {
    color: #2563eb !important;
    text-decoration: underline;
}

.issue-footer .separator {
    color: #d1d5db;
}

/* TIME TRACKING CARD */
.time-tracking-card {
    background: linear-gradient(135deg, #eef6ff 0%, #f0f9ff 100%) !important;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #bfdbfe;
}

.time-tracking-card .time-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.time-tracking-card .card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #1e3a8a;
}

.time-tracking-card .time-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.time-tracking-card .time-action-link {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.time-tracking-card .time-action-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.time-tracking-card .separator {
    color: #d1d5db;
}

.time-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.time-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eff6ff;
    transition: all 0.2s ease;
}

.time-item:hover {
    background: #f8fbff;
    border-color: #bfdbfe;
}

.time-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #3b82f6;
    position: relative;
    flex-shrink: 0;
}

.time-icon::after {
    content: "";
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.time-label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.time-value {
    font-size: 16px;
    font-weight: 700;
    color: #1e3a8a;
}

/* MEMBERS CARD */
.overview-members {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #bfdbfe;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.overview-members h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.overview-members h3::before {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="%233b82f6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.members-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.member-group {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid #e0e7ff;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.08);
    transition: all 0.25s ease;
}

.member-group:hover {
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
    border-color: #93c5fd;
}

.member-role-label {
    font-size: 15px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: capitalize;
}

.member-count {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-left: 6px;
}

.member-avatars {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.member-avatar {
    padding: 8px 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 13px;
    color: #1e40af;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: 1px solid #93c5fd;
    position: relative;
}

/* Random Light Colors for Avatars */
.member-avatar:nth-child(8n+1) {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-color: #f9a8d4;
    color: #831843;
}

.member-avatar:nth-child(8n+1)::before {
    color: #db2777;
}

.member-avatar:nth-child(8n+2) {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #93c5fd;
    color: #1e40af;
}

.member-avatar:nth-child(8n+2)::before {
    color: #3b82f6;
}

.member-avatar:nth-child(8n+3) {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #fca5a5;
    color: #991b1b;
}

.member-avatar:nth-child(8n+3)::before {
    color: #dc2626;
}

.member-avatar:nth-child(8n+4) {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-color: #a5b4fc;
    color: #3730a3;
}

.member-avatar:nth-child(8n+4)::before {
    color: #6366f1;
}

.member-avatar:nth-child(8n+5) {
    background: linear-gradient(135deg, #ecfccb 0%, #d9f99d 100%);
    border-color: #bef264;
    color: #3f6212;
}

.member-avatar:nth-child(8n+5)::before {
    color: #65a30d;
}

.member-avatar:nth-child(8n+6) {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
    color: #78350f;
}

.member-avatar:nth-child(8n+6)::before {
    color: #f59e0b;
}

.member-avatar:nth-child(8n+7) {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    border-color: #5eead4;
    color: #134e4a;
}

.member-avatar:nth-child(8n+7)::before {
    color: #14b8a6;
}

.member-avatar:nth-child(8n+8) {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-color: #d8b4fe;
    color: #6b21a8;
}

.member-avatar:nth-child(8n+8)::before {
    color: #a855f7;
}

/* Link styling for member avatars */
a.member-avatar {
    text-decoration: none;
}

a.member-avatar:visited {
    color: inherit;
}

.member-avatar:hover::before {
    color: inherit;
}



@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.member-more {
    background: linear-gradient(135deg, #03A9F4 0%, #03A9F4 100%) !important;
    color: #ffffff !important;
    border-color: #03A9F4 !important;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    border-radius: 8px;
}

.member-more::before {
    content: none;
}

.member-more:hover {
    background: linear-gradient(122deg, #03A9F4 0%, #03A9F4 51%) !important;
    color: #ffffff !important;
    border-color: #6b7280;
    box-shadow: 0 8px 16px rgba(107, 114, 128, 0.4);
}

.member-more:hover::before {
    content: none;
}

.member-more.expanded {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-color: #fbbf24;
    border-radius: 8px;
}

.member-more.expanded:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    color: #78350f;
}

/* ============================================
   RESPONSIVE DESIGN - Mobile First Approach
   ============================================ */

/* RESPONSIVE STYLES */
@media (max-width: 1200px) {

    .overview-layout .splitcontentleft,
    .overview-layout .splitcontentright {
        width: 100%;
        float: none;
        margin-right: 0;
    }

    .issue-row {
        grid-template-columns: 1fr 100px;
        gap: 12px;
    }

    .issue-header .columns {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .overview-layout {
        padding: 16px;
    }

    .overview-layout .splitcontentleft,
    .overview-layout .splitcontentright {
        width: 100%;
        float: none;
        margin-right: 0;
    }

    .overview-layout .card,
    .overview-layout .box {
        padding: 16px;
    }

    .project-role-card .card-title,
    .time-tracking-card .card-title,
    .overview-members h3 {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .role-row {
        grid-template-columns: 100px 1fr;
        gap: 12px;
    }

    .issue-row {
        grid-template-columns: 1fr 60px;
    }

    .issue-header .columns {
        gap: 30px;
    }

    .time-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 16px;
    }

    .time-left {
        width: 100%;
    }

    .time-value {
        align-self: flex-end;
    }

    .member-avatars {
        gap: 8px;
    }

    .time-tracking-card .time-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .time-tracking-card .time-actions {
        flex-wrap: wrap;
    }
}