/* ================================================
   DASHBOARD - Modern Interactive Styling
   ================================================ */

/* ================================================
   1. DASHBOARD CONTAINER & LAYOUT
   ================================================ */

.dashboard-content {
    flex: 1;
    padding: 32px 24px;
    overflow-y: auto;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
}

.dashboard-container h1 {
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #00d084 0%, #0099cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.dashboard-subtitle {
    margin-bottom: 32px;
    color: #9ca3af; 
    font-size: 16px; 
    margin-top: 12px;
}

/* ================================================
   2. DASHBOARD GRID - Card Layout
   ================================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

/* ================================================
   3. DASHBOARD CARDS - Individual Metric Cards
   ================================================ */

.dashboard-card {
    background: linear-gradient(135deg, #1a1f2e 0%, #374151 100%);
    border: 1px solid rgba(20, 184, 166, 0.15);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.dashboard-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #14b8a6, #06b6d4, #3b82f6);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.dashboard-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px at 50% 50%, rgba(20, 184, 166, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.dashboard-card:hover {
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow:
        0 20px 25px -5px rgba(20, 184, 166, 0.2),
        0 10px 10px -5px rgba(0, 0, 0, 0.4);
    transform: translateY(-8px);
}

.dashboard-card:hover::before {
    animation: gradientMove 0.6s ease-in-out forwards;
}

@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes gradientMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Card Header */
.dashboard-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-card .card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.dashboard-card .card-header .icon {
    width: 28px;
    height: 28px;
    color: #14b8a6;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Card Content */
.dashboard-card .card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-row:hover {
    background: rgba(20, 184, 166, 0.05);
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 6px;
}

.metric-label {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: #14b8a6;
    font-variant-numeric: tabular-nums;
}

/* ================================================
   4. METRIC PROGRESS BARS - Visual Indicators
   ================================================ */

.metric-with-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.metric-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #14b8a6 0%, #06b6d4 100%);
    border-radius: 3px;
    width: 0%;
    animation: fillProgress 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.6);
}

@keyframes fillProgress {
    from {
        width: 0%;
    }
    to {
        width: var(--progress-value, 75%);
    }
}

.metric-progress-fill.high {
    background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
}

.metric-progress-fill.medium {
    background: linear-gradient(90deg, #f59e0b 0%, #ec4899 100%);
}

.metric-progress-fill.low {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

/* ================================================
   5. RECENT ACTIVITY SECTION
   ================================================ */

.recent-activity {
    background: linear-gradient(135deg, #1a1f2e 0%, #374151 100%);
    border: 1px solid rgba(20, 184, 166, 0.15);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.recent-activity h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.recent-activity h2::before {
    content: "";
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, #14b8a6 0%, #06b6d4 100%);
    border-radius: 2px;
}

/* ================================================
   6. ACTIVITY LIST & ITEMS
   ================================================ */

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.activity-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #14b8a6 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-item:hover {
    background: rgba(20, 184, 166, 0.08);
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateX(8px);
}

.activity-item:hover::before {
    opacity: 1;
}

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.activity-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    filter: brightness(0.7);
}

.activity-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    position: relative;
    z-index: 1;
}

.activity-icon.social {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: #ffffff;
}

.activity-icon.email {
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    color: #ffffff;
}

.activity-icon.blog {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    color: #ffffff;
}

.activity-icon.message {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    color: #ffffff;
}

.activity-icon.achievement {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #ffffff;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 16px;
    font-weight: 600;
    color: #f3f4f6;
    margin: 0 0 6px 0;
}

.activity-time {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* ================================================
   7. STATS BADGES & INDICATORS
   ================================================ */

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #14b8a6;
    white-space: nowrap;
}

.stat-badge.positive {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.stat-badge.negative {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.stat-badge.neutral {
    background: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.3);
    color: #6b7280;
}

.stat-badge .trend-icon {
    width: 14px;
    height: 14px;
}

/* ================================================
   8. INTERACTIVE HOVER EFFECTS
   ================================================ */

.card-hover-effect {
    position: relative;
}

.card-hover-effect::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 400px at 50% 0%, rgba(20, 184, 166, 0.1) 0%, transparent 80%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    pointer-events: none;
}

.card-hover-effect:hover::after {
    opacity: 1;
}

/* ================================================
   9. ANIMATIONS
   ================================================ */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(20, 184, 166, 0);
    }
}

.dashboard-card:nth-child(1) {
    animation-delay: 0.1s;
}
.dashboard-card:nth-child(2) {
    animation-delay: 0.2s;
}
.dashboard-card:nth-child(3) {
    animation-delay: 0.3s;
}
.dashboard-card:nth-child(4) {
    animation-delay: 0.4s;
}
.dashboard-card:nth-child(5) {
    animation-delay: 0.5s;
}
.dashboard-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* ================================================
   10. RESPONSIVE DESIGN - Dashboard
   ================================================ */

@media (max-width: 1199.98px) {

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .dashboard-container h1 {
        font-size: 32px;
        margin-left: 4rem;
        margin-top: -15px;
    }
    .dashboard-subtitle {
        margin-left: 4rem;
    }

    .dashboard-card {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .dashboard-content {
        padding: 24px 16px;
    }
     .dashboard-container h1 {
        margin-top: -35px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dashboard-card {
        padding: 20px;
    }

    .dashboard-card .card-header h3 {
        font-size: 16px;
    }

    .metric-value {
        font-size: 18px;
    }

    .recent-activity {
        padding: 24px;
    }

    .recent-activity h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .activity-item {
        padding: 14px;
        gap: 12px;
    }

    .activity-icon {
        width: 44px;
        height: 44px;
    }

    .activity-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
     .dashboard-container h1 {
        margin-top: -15px;
    }
    .dashboard-content {
        padding: 16px 12px;
    }

    .dashboard-container h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 32px;
    }

    .dashboard-card {
        padding: 16px;
        border-radius: 12px;
    }

    .dashboard-card .card-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .dashboard-card .card-header h3 {
        font-size: 15px;
    }

    .metric-row {
        padding: 10px 0;
    }

    .metric-label {
        font-size: 13px;
    }

    .metric-value {
        font-size: 16px;
    }

    .recent-activity {
        padding: 16px;
        border-radius: 12px;
    }

    .recent-activity h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .activity-list {
        gap: 12px;
    }

    .activity-item {
        padding: 12px;
        gap: 10px;
        border-radius: 10px;
    }

    .activity-icon {
        width: 40px;
        height: 40px;
    }

    .activity-icon svg {
        width: 20px;
        height: 20px;
    }

    .activity-title {
        font-size: 14px;
    }

    .activity-time {
        font-size: 12px;
    }
}

/* ================================================
   11. DARK MODE ENHANCEMENTS
   ================================================ */

@media (prefers-color-scheme: dark) {
    .dashboard-content {
        background: linear-gradient(135deg, #0a0e14 0%, #141a25 100%);
    }

    .dashboard-card {
        background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    }

    .recent-activity {
        background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    }
}

/* ================================================
   12. ACCESSIBILITY FEATURES
   ================================================ */

@media (prefers-reduced-motion: reduce) {
    .dashboard-card,
    .activity-item,
    .recent-activity,
    .metric-row,
    .metric-progress-fill {
        animation: none;
        transition: none;
    }

    .dashboard-card::before,
    .activity-item::before {
        animation: none;
    }
}

@media (prefers-contrast: more) {
    .dashboard-card {
        border-color: rgba(20, 184, 166, 0.5);
    }

    .metric-value {
        font-weight: 800;
    }

    .activity-title {
        font-weight: 700;
    }
}
