/* Dafnet Admin Design System - CSS Variables and Styles */

:root {
    /* Primary - Sage */
    --sage-50: #f7f9f7;
    --sage-100: #e8f0e8;
    --sage-200: #d1e4d1;
    --sage-300: #a8d0a8;
    --sage-400: #6fb86f;
    --sage-500: #4a9d4a;
    --sage-600: #3d8540;
    --sage-700: #316b33;
    --sage-800: #2a5a2c;

    /* Accent - Mint */
    --mint-400: #5dd9a8;
    --mint-500: #3bc490;

    /* Neutrals */
    --charcoal: #2d3436;
    --charcoal-light: #636e72;
    --warm-white: #fdfcfb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--sage-50) 100%);
    color: var(--charcoal);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Pro', serif;
    line-height: 1.2;
}

/* Animations */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Utility Classes */
.fade-slide-in {
    animation: fadeSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.spin {
    animation: spin 1s linear infinite;
}

/* Button Styles */
.dafnet-button {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dafnet-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dafnet-button-primary {
    background: linear-gradient(135deg, var(--sage-600) 0%, var(--sage-500) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(77, 157, 74, 0.3);
}

.dafnet-button-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 157, 74, 0.4);
}

.dafnet-button-secondary {
    background: var(--sage-50);
    color: var(--sage-700);
    border: 2px solid var(--sage-200);
}

.dafnet-button-secondary:hover:not(:disabled) {
    background: var(--sage-100);
    border-color: var(--sage-300);
    transform: translateY(-2px);
}

.dafnet-button-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 2px solid #fecaca;
}

.dafnet-button-danger:hover:not(:disabled) {
    background: #fca5a5;
    transform: translateY(-2px);
}

/* Icon Button Styles */
.dafnet-icon-button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: var(--sage-50);
    color: var(--sage-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dafnet-icon-button:hover:not(:disabled) {
    background: var(--sage-100);
    transform: scale(1.1);
}

.dafnet-icon-button.danger:hover:not(:disabled) {
    background: #fee2e2;
    color: #dc2626;
}

.dafnet-icon-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Badge Styles */
.dafnet-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.dafnet-badge-admin {
    background: linear-gradient(135deg, var(--sage-100) 0%, var(--sage-200) 100%);
    color: var(--sage-800);
    border: 1px solid var(--sage-300);
}

.dafnet-badge-user {
    background: var(--sage-50);
    color: var(--charcoal-light);
    border: 1px solid var(--sage-200);
}

.dafnet-badge-moderator {
    background: linear-gradient(135deg, rgba(93, 217, 168, 0.1) 0%, rgba(93, 217, 168, 0.2) 100%);
    color: var(--mint-500);
    border: 1px solid var(--mint-400);
}

/* Status Badge Styles */
.dafnet-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.dafnet-status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dafnet-status-active {
    background: rgba(77, 157, 74, 0.1);
    color: var(--sage-700);
}

.dafnet-status-active::before {
    background: var(--sage-500);
}

.dafnet-status-confirmed {
    background: rgba(93, 217, 168, 0.1);
    color: var(--mint-500);
}

.dafnet-status-confirmed::before {
    background: var(--mint-500);
}

.dafnet-status-pending {
    background: rgba(251, 189, 35, 0.1);
    color: #d68910;
}

.dafnet-status-pending::before {
    background: #f59e0b;
}

/* Card Styles */
.dafnet-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid var(--sage-100);
    box-shadow: 0 4px 16px rgba(77, 157, 74, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dafnet-card.hoverable:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(77, 157, 74, 0.15);
    border-color: var(--sage-300);
}

/* Form Input Styles */
.dafnet-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--sage-200);
    border-radius: 12px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9375rem;
    background: var(--warm-white);
    color: var(--charcoal);
    transition: all 0.3s ease;
}

.dafnet-input:focus {
    outline: none;
    border-color: var(--sage-500);
    background: white;
    box-shadow: 0 4px 16px rgba(77, 157, 74, 0.12);
}

.dafnet-input:disabled {
    background: var(--sage-50);
    color: var(--charcoal-light);
    cursor: not-allowed;
}

.dafnet-input.error {
    border-color: #dc2626;
}

/* Textarea Styles */
.dafnet-textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--sage-200);
    border-radius: 12px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9375rem;
    background: var(--warm-white);
    color: var(--charcoal);
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

.dafnet-textarea:focus {
    outline: none;
    border-color: var(--sage-500);
    background: white;
    box-shadow: 0 4px 16px rgba(77, 157, 74, 0.12);
}

.dafnet-textarea:disabled {
    background: var(--sage-50);
    color: var(--charcoal-light);
    cursor: not-allowed;
}

/* Select Styles */
.dafnet-select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--sage-200);
    border-radius: 12px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9375rem;
    background: var(--warm-white);
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dafnet-select:focus {
    outline: none;
    border-color: var(--sage-500);
    background: white;
    box-shadow: 0 4px 16px rgba(77, 157, 74, 0.12);
}

.dafnet-select:disabled {
    background: var(--sage-50);
    color: var(--charcoal-light);
    cursor: not-allowed;
}

/* Checkbox and Radio Styles */
.dafnet-checkbox-wrapper,
.dafnet-radio-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.dafnet-checkbox,
.dafnet-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--sage-300);
    cursor: pointer;
}

.dafnet-checkbox {
    border-radius: 6px;
}

.dafnet-checkbox:disabled,
.dafnet-radio:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Toggle Switch Styles */
.dafnet-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--sage-50);
    border-radius: 12px;
    border: 1px solid var(--sage-200);
}

.dafnet-toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--sage-200);
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dafnet-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dafnet-toggle-input:checked + .dafnet-toggle-switch {
    background: var(--sage-500);
}

.dafnet-toggle-input:checked + .dafnet-toggle-switch::after {
    transform: translateX(24px);
}

.dafnet-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.dafnet-toggle-input:disabled + .dafnet-toggle-switch {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Search Box Styles */
.dafnet-search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.dafnet-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.5;
    pointer-events: none;
}

.dafnet-search-input {
    padding-left: 3rem;
}

/* Avatar Styles */
.dafnet-avatar {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sage-400) 0%, var(--mint-400) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(77, 157, 74, 0.2);
}

.dafnet-avatar.small {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
}

.dafnet-avatar.medium {
    width: 44px;
    height: 44px;
    font-size: 1rem;
}

.dafnet-avatar.large {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

.dafnet-avatar.xlarge {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.dafnet-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* User Cell Styles */
.dafnet-user-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dafnet-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dafnet-user-name {
    font-weight: 600;
    color: var(--charcoal);
}

.dafnet-user-email {
    font-size: 0.8125rem;
    color: var(--charcoal-light);
}

/* Table Styles */
.dafnet-table-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--sage-100);
    box-shadow: 0 4px 16px rgba(77, 157, 74, 0.08);
    overflow: hidden;
}

.dafnet-table {
    width: 100%;
    border-collapse: collapse;
}

.dafnet-table thead {
    background: linear-gradient(135deg, var(--sage-50) 0%, var(--sage-100) 100%);
}

.dafnet-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sage-800);
    border-bottom: 2px solid var(--sage-200);
}

.dafnet-table tbody tr {
    border-bottom: 1px solid var(--sage-100);
    transition: all 0.3s ease;
}

.dafnet-table tbody tr:hover {
    background: var(--sage-50);
}

.dafnet-table td {
    padding: 1.25rem 1.5rem;
    font-size: 0.9375rem;
    color: var(--charcoal);
}

/* Pagination Styles */
.dafnet-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--sage-50);
    border-radius: 12px;
}

.dafnet-pagination-info {
    font-size: 0.875rem;
    color: var(--charcoal-light);
    font-weight: 500;
}

.dafnet-pagination-buttons {
    display: flex;
    gap: 0.5rem;
}

.dafnet-pagination-button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--sage-200);
    background: white;
    color: var(--charcoal);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dafnet-pagination-button:hover:not(:disabled) {
    background: var(--sage-100);
}

.dafnet-pagination-button.active {
    border: 1px solid var(--sage-600);
    background: linear-gradient(135deg, var(--sage-600) 0%, var(--sage-500) 100%);
    color: white;
}

.dafnet-pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sidebar Styles */
.dafnet-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 240px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.92) 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--sage-200);
    padding: 1.5rem 0;
    overflow-y: auto;
}

.dafnet-sidebar-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--sage-100);
    margin-bottom: 1.5rem;
}

.dafnet-sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--sage-700) 0%, var(--mint-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dafnet-sidebar-subtitle {
    font-size: 0.75rem;
    color: var(--charcoal-light);
    margin-top: 0.25rem;
    font-weight: 500;
}

.dafnet-nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--charcoal-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
    transition: all 0.3s ease;
}

.dafnet-nav-item:hover {
    color: var(--sage-700);
    background: linear-gradient(90deg, var(--sage-50) 0%, transparent 100%);
}

.dafnet-nav-item.active {
    color: var(--sage-700);
    font-weight: 600;
    background: linear-gradient(90deg, var(--sage-50) 0%, transparent 100%);
}

.dafnet-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, var(--sage-500) 0%, var(--mint-500) 100%);
    border-radius: 0 4px 4px 0;
}

.dafnet-nav-icon {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    opacity: 0.7;
}

/* Breadcrumb Styles */
.dafnet-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--charcoal-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.dafnet-breadcrumb-separator {
    color: var(--sage-600);
}

.dafnet-breadcrumb-link {
    color: var(--charcoal-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dafnet-breadcrumb-link:hover {
    color: var(--sage-600);
}

.dafnet-breadcrumb-active {
    color: var(--sage-600);
}

/* Form Label Styles */
.dafnet-form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.dafnet-form-label-required {
    color: #dc2626;
    font-size: 1rem;
}

.dafnet-form-label-help {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--charcoal-light);
    margin-left: auto;
}

.dafnet-form-help-text {
    font-size: 0.8125rem;
    color: var(--charcoal-light);
    font-style: italic;
    display: block;
    margin-top: 0.25rem;
}

.dafnet-form-error {
    font-size: 0.8125rem;
    color: #dc2626;
    display: block;
    margin-top: 0.25rem;
}

/* Modal Styles */
.dafnet-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 52, 54, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeSlideIn 0.3s ease;
}

.dafnet-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(77, 157, 74, 0.15);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.dafnet-modal.small {
    width: 400px;
}

.dafnet-modal.medium {
    width: 600px;
}

.dafnet-modal.large {
    width: 800px;
}

.dafnet-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--sage-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dafnet-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sage-700);
}

.dafnet-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--sage-50);
    color: var(--charcoal-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dafnet-modal-close:hover {
    background: var(--sage-100);
}

.dafnet-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.dafnet-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--sage-100);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Alert Styles */
.dafnet-alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dafnet-alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1e40af;
}

.dafnet-alert-success {
    background: rgba(77, 157, 74, 0.1);
    border: 1px solid var(--sage-300);
    color: var(--sage-700);
}

.dafnet-alert-warning {
    background: rgba(251, 189, 35, 0.1);
    border: 1px solid rgba(251, 189, 35, 0.3);
    color: #d68910;
}

.dafnet-alert-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #dc2626;
}

.dafnet-alert-content {
    flex: 1;
}

.dafnet-alert-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.dafnet-alert-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.dafnet-alert-close:hover {
    opacity: 1;
}

/* Toast Styles */
.dafnet-toast-container {
    position: fixed;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.dafnet-toast-container.top-right {
    top: 2rem;
    right: 2rem;
}

.dafnet-toast-container.top-left {
    top: 2rem;
    left: 2rem;
}

.dafnet-toast-container.bottom-right {
    bottom: 2rem;
    right: 2rem;
}

.dafnet-toast-container.bottom-left {
    bottom: 2rem;
    left: 2rem;
}

.dafnet-toast {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 24px rgba(77, 157, 74, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    animation: fadeSlideIn 0.3s ease;
}

.dafnet-toast-info {
    border-left: 4px solid #3b82f6;
}

.dafnet-toast-success {
    border-left: 4px solid var(--sage-500);
}

.dafnet-toast-warning {
    border-left: 4px solid #f59e0b;
}

.dafnet-toast-error {
    border-left: 4px solid #dc2626;
}

.dafnet-toast-content {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--charcoal);
}

.dafnet-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.dafnet-toast-close:hover {
    opacity: 1;
}

/* Loading Spinner Styles */
.dafnet-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.dafnet-spinner {
    border-radius: 50%;
}

.dafnet-spinner.small {
    width: 24px;
    height: 24px;
}

.dafnet-spinner.medium {
    width: 40px;
    height: 40px;
}

.dafnet-spinner.large {
    width: 60px;
    height: 60px;
}

.dafnet-spinner.pulse {
    background: var(--sage-500);
    animation: pulse 2s ease-in-out infinite;
}

.dafnet-spinner.spin {
    border: 4px solid var(--sage-100);
    border-top-color: var(--sage-500);
    animation: spin 1s linear infinite;
}

.dafnet-spinner-message {
    font-size: 0.875rem;
    color: var(--charcoal-light);
}

/* Page Header Styles */
.dafnet-page-header {
    margin-bottom: 2rem;
}

.dafnet-page-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.dafnet-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sage-700);
}

.dafnet-page-subtitle {
    font-size: 1.125rem;
    color: var(--charcoal-light);
    margin-top: 0.5rem;
}

/* Main Layout Styles */
.dafnet-main-layout {
    display: flex;
    min-height: 100vh;
}

.dafnet-main-content {
    flex: 1;
    margin-left: 240px;
    padding: 2rem;
}

.dafnet-main-content.no-sidebar {
    margin-left: 0;
}

/* Stat Card Styles */
.dafnet-stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--charcoal-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.dafnet-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Crimson Pro', serif;
    color: var(--sage-700);
    margin-bottom: 0.5rem;
}

.dafnet-stat-trend {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sage-600);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dafnet-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .dafnet-sidebar.open {
        transform: translateX(0);
    }

    .dafnet-main-content {
        margin-left: 0;
    }
}

/* File Upload Styles */
.dafnet-file-upload {
    width: 100%;
}

.dafnet-file-input {
    display: none;
}

.dafnet-file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    border: 2px dashed var(--sage-300);
    border-radius: 12px;
    background: var(--warm-white);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.dafnet-file-upload-label:hover:not(.disabled) {
    border-color: var(--sage-500);
    background: var(--sage-50);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(77, 157, 74, 0.12);
}

.dafnet-file-upload-label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dafnet-file-upload.error .dafnet-file-upload-label {
    border-color: #dc2626;
    background: #fef2f2;
}

.dafnet-file-upload-icon {
    color: var(--sage-500);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.dafnet-file-upload-label:hover:not(.disabled) .dafnet-file-upload-icon {
    color: var(--sage-600);
    transform: translateY(-4px);
}

.dafnet-file-upload-text {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.dafnet-file-upload-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--charcoal);
}

.dafnet-file-upload-help {
    font-size: 0.8125rem;
    color: var(--charcoal-light);
}

.dafnet-file-upload-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dafnet-file-upload-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: var(--sage-50);
    border: 1px solid var(--sage-200);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.dafnet-file-upload-item:hover {
    background: var(--sage-100);
    border-color: var(--sage-300);
}

.dafnet-file-upload-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    color: var(--sage-600);
}

.dafnet-file-upload-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dafnet-file-upload-item-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--charcoal);
}

.dafnet-file-upload-item-size {
    font-size: 0.8125rem;
    color: var(--charcoal-light);
}

.dafnet-file-upload-item-remove {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--charcoal-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dafnet-file-upload-item-remove:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: scale(1.1);
}
