/* Professional Pure White Admin Panel CSS Framework */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
:root {
    --primary-white: #ffffff;
    --secondary-white: #fafafa;
    --tertiary-white: #f5f5f5;
    --quaternary-white: #f0f0f0;
    --border-white: #e0e0e0;
    --border-light: #d0d0d0;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --text-lighter: #cccccc;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 2px 6px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --border-radius-small: 4px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--primary-white) 0%, var(--secondary-white) 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container Layout */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: var(--primary-white);
    border-right: 1px solid var(--border-white);
    box-shadow: var(--shadow-light);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-white);
    background: var(--primary-white);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 0.5rem;
}

.sidebar-header p {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin: 0.25rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: var(--tertiary-white);
    color: var(--text-dark);
    border-left-color: var(--border-light);
}

.sidebar-nav a.active {
    background: var(--secondary-white);
    color: var(--text-dark);
    border-left-color: var(--border-light);
    box-shadow: var(--shadow-light);
    font-weight: 600;
}

.sidebar-nav a i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    color: #333333 !important;
    transition: var(--transition);
}

.sidebar-nav a:hover i {
    color: #000000 !important;
}

.sidebar-nav a.active i {
    color: #000000 !important;
}

/* Material Icons specific styling */
.material-icons {
    font-family: 'Material Icons' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 1.25rem !important;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 2rem;
    background: var(--secondary-white);
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--primary-white);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-white);
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-white);
    border-radius: var(--border-radius-small);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    gap: 0.5rem;
    background: var(--primary-white);
    color: var(--text-dark);
}

.btn:hover {
    background: var(--tertiary-white);
    border-color: var(--border-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.btn-primary {
    background: var(--primary-white);
    color: var(--text-dark);
    border: 1px solid var(--border-white);
}

.btn-primary:hover {
    background: var(--tertiary-white);
    border-color: var(--border-light);
}

.btn-success {
    background: var(--primary-white);
    color: var(--text-dark);
    border: 1px solid var(--border-white);
}

.btn-success:hover {
    background: var(--tertiary-white);
    border-color: var(--border-light);
}

.btn-danger {
    background: var(--primary-white);
    color: var(--text-dark);
    border: 1px solid var(--border-white);
}

.btn-danger:hover {
    background: var(--tertiary-white);
    border-color: var(--border-light);
}

.btn-warning {
    background: var(--primary-white);
    color: var(--text-dark);
    border: 1px solid var(--border-white);
}

.btn-warning:hover {
    background: var(--tertiary-white);
    border-color: var(--border-light);
}

.btn-outline {
    background: var(--primary-white);
    color: var(--text-dark);
    border: 1px solid var(--border-white);
}

.btn-outline:hover {
    background: var(--tertiary-white);
    border-color: var(--border-light);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Content Area */
.content-area {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-white);
    margin-bottom: 2rem;
}

/* Cards */
.card {
    background: var(--primary-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-white);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-white);
    background: var(--secondary-white);
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-white);
    background: var(--secondary-white);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--primary-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-white);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--border-light);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-medium);
    font-weight: 500;
    margin: 0;
}

/* Forms */
.form-section {
    background: var(--secondary-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-white);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-white);
    border-radius: var(--border-radius-small);
    font-size: 0.875rem;
    transition: var(--transition);
    background: var(--primary-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.75rem;
}

/* Tables */
.table-container {
    background: var(--primary-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-white);
    overflow: hidden;
}

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

.table th {
    background: var(--secondary-white);
    color: var(--text-dark);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-white);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-white);
    color: var(--text-dark);
}

.table tr:hover {
    background: var(--secondary-white);
}

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

/* Messages */
.message {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-small);
    margin-bottom: 1.5rem;
    font-weight: 500;
    border-left: 4px solid;
}

.message.success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--accent-green);
    border-left-color: var(--accent-green);
}

.message.error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent-red);
    border-left-color: var(--accent-red);
}

.message.warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--accent-orange);
    border-left-color: var(--accent-orange);
}

.message.info {
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent-blue);
    border-left-color: var(--accent-blue);
}

/* Search Bar */
.search-container {
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-white);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--primary-white);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-input::placeholder {
    color: var(--text-light);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-white);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-red);
}

/* Images */
.image-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius-small);
    border: 2px solid var(--border-white);
}

.image-preview-large {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-white);
    border-radius: 50%;
    border-top-color: var(--accent-blue);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--border-radius-small);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--secondary-white);
    color: var(--text-dark);
    border: 1px solid var(--border-white);
}

.badge-primary {
    background: var(--secondary-white);
    color: var(--text-dark);
    border: 1px solid var(--border-white);
}

.badge-success {
    background: var(--secondary-white);
    color: var(--text-dark);
    border: 1px solid var(--border-white);
}

.badge-danger {
    background: var(--secondary-white);
    color: var(--text-dark);
    border: 1px solid var(--border-white);
}

.badge-warning {
    background: var(--secondary-white);
    color: var(--text-dark);
    border: 1px solid var(--border-white);
}

/* Icon Colors - Standard Material Color */
i, .icon {
    color: var(--text-medium) !important;
    transition: var(--transition);
}

.btn i, .btn .icon {
    color: var(--text-dark) !important;
}

.btn:hover i, .btn:hover .icon {
    color: var(--text-dark) !important;
}

/* Compact List Styling - Reduce Heights and Spacing */
.table td, .table th {
    padding: 6px 8px !important;
    font-size: 0.875rem !important;
}

.table th {
    padding: 8px !important;
    font-size: 0.8rem !important;
}

.card {
    margin-bottom: 1rem !important;
}

.card-header {
    padding: 0.75rem 1rem !important;
}

.card-body {
    padding: 0.75rem 1rem !important;
}

.form-group {
    margin-bottom: 0.75rem !important;
}

.form-group label {
    font-size: 0.875rem !important;
    margin-bottom: 0.25rem !important;
}

.form-group input, .form-group textarea, .form-group select {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
}

.btn {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.8rem !important;
}

.btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
}

.message {
    padding: 0.5rem 0.75rem !important;
    margin-bottom: 0.75rem !important;
    font-size: 0.875rem !important;
}

.stats-grid {
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
}

.stat-card {
    padding: 0.75rem !important;
}

.stat-card h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.25rem !important;
}

.stat-card p {
    font-size: 0.75rem !important;
}

.header {
    padding: 1rem 1.5rem !important;
    margin-bottom: 1rem !important;
}

.header h1 {
    font-size: 1.5rem !important;
}

.content-area {
    padding: 1rem !important;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--border-radius); }
.rounded-sm { border-radius: var(--border-radius-small); }

.shadow { box-shadow: var(--shadow-light); }
.shadow-md { box-shadow: var(--shadow-medium); }
.shadow-lg { box-shadow: var(--shadow-heavy); }
