﻿/* Dashboard Specific Styles */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

/* Dashboard Grid - Updated for responsive rows */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: min-content; /* This makes rows size to their content */
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Enhanced card shadows for overlap effect */
.dashboard-page .card,
.dashboard-page .menu-card,
.dashboard-page .hero-banner,
.dashboard-page .subscription-card {
    box-shadow: 0 0 50px 0 rgba(82, 63, 105, 0.15);
}

/* Menu Cards - Adjusted to align with hero banner */
.menu-cards {
    grid-column: span 4;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: min-content; /* Cards size to content */
    gap: 1rem;
    align-content: start; /* Align cards to top */
    height: 100%; /* Take full height of grid cell */
}

.menu-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    height: min-content; /* Size to content */
}

    .menu-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 50px 0 rgba(82, 63, 105, 0.25) !important;
    }

.card-icon {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 36px;
    height: 36px;
    background-color: rgba(59, 130, 246, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

    .card-icon:hover {
        background-color: rgba(59, 130, 246, 0.15);
        transform: scale(1.05);
    }

    /* === Force consistent blue duotone colors === */

    .card-icon .ki-duotone {
        color: #2563eb !important;
    }

        .card-icon .ki-duotone .path1,
        .card-icon .ki-duotone .path3 {
            color: #2563eb !important;
        }

        .card-icon .ki-duotone .path2,
        .card-icon .ki-duotone .path4 {
            color: #93c5fd !important;
        }

    /* Hover color shift */

    .card-icon:hover .ki-duotone .path1,
    .card-icon:hover .ki-duotone .path3 {
        color: #1e40af !important;
    }

    .card-icon:hover .ki-duotone .path2,
    .card-icon:hover .ki-duotone .path4 {
        color: #60a5fa !important;
    }


.menu-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3F4254;
    margin: 0;
}

/* Hero Banner - Flexible height */
.hero-banner {
    grid-column: span 8;
    background: linear-gradient(112.1deg, #2E7CF6 0%, #214FBE 100%);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    justify-content: space-between;
    min-height: 200px; /* Reduced minimum height */
    display: flex;
    align-items: center;
    height: 200px; /* Let content determine height */
}

    .hero-banner::before {
        content: '';
        position: absolute;
        right: -100px;
        top: -100px;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    }

.hero-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    position: relative;
}

.hero-btn {
    background: white;
    color: #2E7CF6;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1.5rem;
    position: relative;
}

    .hero-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    height: auto; /* Changed from 100% to auto */
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #181C32;
    margin: 0;
}

.card-subtitle {
    font-size: 0.8rem;
    color: #A1A5B7;
    margin-top: 0.25rem;
}

.card-actions {
    display: flex;
    gap: 0.25rem;
}

.action-dot {
    width: 5px;
    height: 5px;
    background: #A1A5B7;
    border-radius: 50%;
}

/* Activities Section */
.activities-section {
    grid-column: span 4;
    align-self: start; /* Align to top of row */
}

.activity-item {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 0;
    align-items: flex-start;
    position: relative;
}

    .activity-item::before {
        content: '';
        position: absolute;
        left: 63px;
        top: 28px;
        width: 2px;
        height: calc(100% + 0.5rem);
        background: #F3F6F9;
    }

    .activity-item:last-child::before {
        display: none;
    }

.activity-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: #A1A5B7;
    min-width: 45px;
}

.activity-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-top: 2px;
    flex-shrink: 0;
    border: 3px solid;
    background: white;
    position: relative;
    z-index: 1;
}

    .activity-indicator.yellow {
        border-color: #FFC700;
    }

    .activity-indicator.green {
        border-color: #50CD89;
    }

    .activity-indicator.red {
        border-color: #F1416C;
    }

    .activity-indicator.blue {
        border-color: #009EF7;
    }

.activity-text {
    font-size: 0.875rem;
    color: #3F4254;
    line-height: 1.4;
    margin: 0;
}

.text-link {
    color: #009EF7;
    text-decoration: none;
    font-weight: 600;
}

    .text-link:hover {
        text-decoration: underline;
    }

/* Trends Section */
.trends-section {
    grid-column: span 4;
    align-self: start; /* Align to top of row */
}

.chart-area {
    height: 200px;
    background: linear-gradient(to bottom, #F3F6F9 0%, #ffffff 100%);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid #F3F6F9;
}

    .list-item:last-child {
        border-bottom: none;
    }

.list-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: 700;
}

.list-content {
    flex: 1;
}

.list-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3F4254;
    margin: 0 0 0.25rem 0;
}

.list-subtitle {
    font-size: 0.85rem;
    color: #A1A5B7;
    margin: 0;
}

.list-badge {
    background: #E8FFF3;
    color: #50CD89;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Todo Section */
.todo-section {
    grid-column: span 4;
    align-self: start; /* Align to top of row */
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #F3F6F9;
}

    .todo-item:last-child {
        border-bottom: none;
    }

.todo-indicator {
    width: 3px;
    height: 35px;
    border-radius: 2px;
}

.todo-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #F3F6F9;
}

.todo-content {
    flex: 1;
}

.todo-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #181C32;
    margin: 0 0 0.125rem 0;
}

.todo-date {
    font-size: 0.8rem;
    color: #A1A5B7;
    margin: 0;
}

.todo-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-green {
    background: #E8FFF3;
    color: #50CD89;
}

.badge-blue {
    background: #E1F0FF;
    color: #009EF7;
}

.badge-yellow {
    background: #FFF8DD;
    color: #FFC700;
}

.badge-pink {
    background: #FFE2E5;
    color: #F1416C;
}

/* Products Section */
.products-section {
    grid-column: 5 / span 8;
    align-self: start; /* Align to top of row */
}

.filtered-out {
    display: none !important;
}

.tabs {
    display: flex;
    gap: 0.5rem;
}

.tab {
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #A1A5B7;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

    .tab.active {
        background: #F3F6F9;
        color: #3F4254;
    }

.product-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #F3F6F9;
    gap: 1rem;
}

    .product-item:last-child {
        border-bottom: none;
    }

.product-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

    .product-icon.pink {
        background: #FFE2E5;
        color: #F1416C;
    }

    .product-icon.blue {
        background: #E1F0FF;
        color: #009EF7;
    }

    .product-icon.purple {
        background: #F3E8FF;
        color: #7239EA;
    }

    .product-icon.red {
        background: #FFE2E5;
        color: #F1416C;
    }

    .product-icon.green {
        background: #E8FFF3;
        color: #50CD89;
    }

.product-info {
    flex: 1;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #181C32;
    margin: 0 0 0.125rem 0;
}

.product-description {
    font-size: 0.8rem;
    color: #A1A5B7;
    margin: 0;
}

.product-tech {
    font-size: 0.85rem;
    color: #A1A5B7;
    min-width: 120px;
    margin: 0 1rem;
}

.product-status {
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-approved {
    background: #E8FFF3;
    color: #50CD89;
}

.status-progress {
    background: #FFF8DD;
    color: #FFC700;
}

.status-success {
    background: #E1F0FF;
    color: #009EF7;
}

.status-rejected {
    background: #FFE2E5;
    color: #F1416C;
}

.product-arrow {
    color: #A1A5B7;
    font-size: 1rem;
}

/* Subscription Cards */
.subscription-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    align-self: start; /* Align to top of row */
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.subscription-icon-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.subscription-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

    .subscription-icon.pink {
        background: #FFE2E5;
        color: #F1416C;
    }

    .subscription-icon.blue {
        background: #E1F0FF;
        color: #009EF7;
    }

.subscription-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #181C32;
    margin: 0 0 0.125rem 0;
}

.subscription-info p {
    font-size: 0.8rem;
    color: #A1A5B7;
    margin: 0;
}

.progress-section {
    margin-bottom: 1.25rem;
}

.progress-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #181C32;
    margin-bottom: 0.5rem;
}

.progress-bar-wrapper {
    height: 6px;
    background: #F3F6F9;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
}

    .progress-bar-fill.pink {
        background: #F1416C;
    }

    .progress-bar-fill.blue {
        background: #009EF7;
    }

.team-section {
    margin-top: 1.5rem;
}

.team-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #181C32;
    margin-bottom: 0.5rem;
}

.team-avatars {
    display: flex;
}

.team-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
}

    .team-avatar:first-child {
        margin-left: 0;
    }

.team-avatar-1 {
    background: linear-gradient(135deg, #FFA726, #FB8C00);
}

.team-avatar-2 {
    background: linear-gradient(135deg, #5C6BC0, #3949AB);
}

.team-avatar-3 {
    background: linear-gradient(135deg, #26C6DA, #00ACC1);
}

.team-avatar-4 {
    background: linear-gradient(135deg, #EC407A, #D81B60);
}

/* Status Badge Colors */
.badge-draft {
    background-color: #E9ECEF !important;
    color: #000 !important;
}

.badge-cm-review {
    background-color: #E3F3FF !important;
    color: #000 !important;
}

.badge-pl-review {
    background-color: #D9DBFC !important;
    color: #000 !important;
}

.badge-approved {
    background-color: #D2F3EA !important;
    color: #000 !important;
}

.badge-unassigned {
    background-color: #F8E4FD !important;
    color: #000 !important;
}

.badge-revision-needed {
    background-color: #FCF2E5 !important;
    color: #000 !important;
}

.badge-expired {
    background-color: #FFECEE !important; /* light red */
    color: #B00020 !important; /* dark red text */
}

.badge-budget-review {
    background-color: #E2FFFF !important;
    color: #000 !important;
}

/* Base badge styling */
.status-badge {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 400;
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .menu-cards {
        grid-column: span 3;
    }

    .hero-banner {
        grid-column: span 5;
    }

    .activities-section,
    .trends-section,
    .todo-section {
        grid-column: span 4;
    }

    .products-section {
        grid-column: span 8;
    }

    .subscription-card {
        grid-column: span 4 !important;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .menu-cards,
    .hero-banner,
    .activities-section,
    .trends-section,
    .todo-section,
    .products-section,
    .subscription-card {
        grid-column: 1 / -1 !important;
    }

    .menu-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}
