/* Client Area Home - Ultra Modern White Professional Design */

/* Layout styles moved to layout.css */
/* Alert styles moved to alerts.css */

/* Dashboard Stats Grid */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    opacity: 1;
    transition: width 0.2s ease, opacity 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.stat-card:hover:before {
    width: 100%;
    opacity: 0.05;
}

.stat-card__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 28px;
    flex-shrink: 0;
}

.stat-card__content {
    flex: 1;
}

.stat-card__label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-card__value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: #1f2937;
}

/* Stat Card Variants */
.stat-card--primary:before {
    background: #67a552;
}

.stat-card--primary .stat-card__icon {
    background: rgba(103, 165, 82, 0.1);
    color: #67a552;
}

.stat-card--warning:before {
    background: #f59e0b;
}

.stat-card--warning .stat-card__icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-card--info:before {
    background: #3b82f6;
}

.stat-card--info .stat-card__icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.stat-card--success:before {
    background: #10b981;
}

.stat-card--success .stat-card__icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* Dashboard Grid & Cards - styles moved to cards.css */

/* Account Info */
.account-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-info__item {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

.account-info__item strong {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.account-info__company {
    color: #6b7280;
    font-size: 14px;
    margin-left: 6px;
}

.account-info__item a {
    color: #67a552;
    text-decoration: none;
}

.account-info__item a:hover {
    text-decoration: underline;
}

/* Overview List */
.overview-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.overview-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.overview-list__item:last-child {
    border-bottom: none;
}

.overview-list__label {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.overview-list__value {
    font-size: 14px;
    font-weight: 600;
}

/* Badge styles moved to alerts.css */

/* Button styles moved to buttons.css */

/* Pay button toggle visibility */
.payselectedbutton {
    display: none;
}

.payselectedbutton.show {
    display: inline-flex;
}

.payallbutton.hide {
    display: none;
}

/* Table styles moved to tables.css */

/* Status badges and labels moved to alerts.css */
/* Empty state and text utilities moved to layout.css */

/* Files Grid */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.file-item:hover {
    background: #ffffff;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 40px rgba(0, 0, 0, 0.08);
}

.file-item__icon {
    font-size: 32px;
    color: #67a552;
}

.file-item__title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    text-align: center;
}

.file-item__title:hover {
    color: #67a552;
}

.file-item__date {
    font-size: 12px;
    color: #6b7280;
}

/* Addon Section */
.addon-section {
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card__icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .stat-card__value {
        font-size: 24px;
    }

    .dashboard-card__header {
        padding: 16px;
    }

    .dashboard-card__body {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .alert-banner {
        flex-direction: column;
        padding: 16px;
    }

    .dashboard-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-card__actions {
        width: 100%;
        flex-direction: column;
    }

    .dashboard-card__actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Mobile table - Stack columns */
    .data-table thead {
        display: none;
    }

    .data-table tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        overflow: hidden;
    }

    .data-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 12px 16px;
        border-bottom: 1px solid #f3f4f6;
    }

    .data-table tbody td:last-child {
        border-bottom: none;
    }

    .data-table tbody td:before {
        content: attr(data-title);
        font-weight: 600;
        color: #374151;
        margin-right: 12px;
    }

    .files-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .dashboard-card__header .btn,
    .dashboard-card__actions {
        display: none;
    }

    .dashboard-card,
    .alert-banner,
    .stat-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}
