/* Dashboard Specific Styles */

.dashboard-main {
    margin-top: 120px;
    min-height: calc(100vh - 120px);
    background: #f8f9fa;
    padding: 40px 0;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 36px;
    color: var(--z2u-grey);
    margin-bottom: 8px;
}

.dashboard-header p {
    font-size: 16px;
    color: #666;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.stat-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7ff;
    border-radius: 12px;
}

.stat-info h3 {
    font-size: 28px;
    color: var(--z2u-grey);
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 14px;
    color: #666;
}

/* Action Bar */
.action-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-outline,
.btn-small {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--z2u-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: #0091c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 167, 226, 0.3);
}

.btn-secondary {
    background: #28a745;
    color: var(--white);
}

.btn-secondary:hover {
    background: #218838;
}

.btn-outline {
    background: var(--white);
    color: var(--z2u-grey);
    border: 2px solid #e0e0e0;
}

.btn-outline:hover {
    border-color: var(--z2u-blue);
    color: var(--z2u-blue);
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    background: var(--z2u-blue);
    color: var(--white);
}

.btn-small:hover {
    background: #0091c7;
}

/* Services Management */
.services-management {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.services-management h2 {
    font-size: 24px;
    color: var(--z2u-grey);
    margin-bottom: 24px;
}

/* Service Tabs */
.service-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--z2u-blue);
}

.tab-btn.active {
    color: var(--z2u-blue);
    border-bottom-color: var(--z2u-blue);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Header */
.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.service-header h3 {
    font-size: 20px;
    color: var(--z2u-grey);
}

.service-note {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

/* Bin Config Selector */
.bin-config-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.bin-config-selector label {
    font-size: 14px;
    font-weight: 600;
    color: var(--z2u-grey);
}

.bin-config-selector select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

/* Pricing Table */
.pricing-table {
    overflow-x: auto;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table thead {
    background: #f8f9fa;
}

.pricing-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--z2u-grey);
    border-bottom: 2px solid #e0e0e0;
}

.pricing-table td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: var(--z2u-grey);
}

.pricing-table tbody tr:hover {
    background: #f8f9fa;
}

.pricing-table input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.pricing-table input[type="number"]:focus {
    outline: none;
    border-color: var(--z2u-blue);
}

/* Status Badge */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Action Buttons in Table */
.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-edit,
.btn-delete,
.btn-save {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-edit {
    background: #ffc107;
    color: #000;
}

.btn-edit:hover {
    background: #e0a800;
}

.btn-delete {
    background: #dc3545;
    color: var(--white);
}

.btn-delete:hover {
    background: #c82333;
}

.btn-save {
    background: #28a745;
    color: var(--white);
}

.btn-save:hover {
    background: #218838;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    color: var(--z2u-grey);
}

.close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-btn:hover {
    background: #e0e0e0;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--z2u-grey);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--z2u-blue);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -100px;
    right: 32px;
    background: var(--white);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: bottom 0.3s;
    z-index: 10000;
}

.toast.show {
    bottom: 32px;
}

.toast-icon {
    font-size: 20px;
}

.toast-message {
    font-size: 14px;
    color: var(--z2u-grey);
    font-weight: 600;
}

.toast.success .toast-icon::before {
    content: '✓';
    color: #28a745;
}

.toast.error .toast-icon::before {
    content: '✕';
    color: #dc3545;
}

/* Active Nav Link */
.nav-menu a.active {
    color: var(--z2u-blue);
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 0 20px;
    }

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

    .action-bar {
        flex-direction: column;
    }

    .action-bar button {
        width: 100%;
        justify-content: center;
    }

    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .bin-config-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .pricing-table {
        font-size: 12px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 8px;
    }

    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .dashboard-header h1 {
        font-size: 28px;
    }

    .service-tabs {
        flex-direction: column;
    }

    .tab-btn {
        text-align: left;
        padding: 12px;
    }
}

