/* ADMIN PANEL STYLES - POLISHED VERSION */
:root {
    --admin-primary: #007AFF;
    --admin-primary-dark: #0056CC;
    --admin-secondary: #5856D6;
    --admin-success: #34C759;
    --admin-danger: #FF3B30;
    --admin-warning: #FF9500;
    --admin-info: #5AC8FA;
    --admin-light: #F5F5F7;
    --admin-dark: #1D1D1F;
    --admin-gray: #8E8E93;
    --admin-border: rgba(0, 0, 0, 0.08);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Text', sans-serif;
    background: var(--admin-light);
    color: var(--admin-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles - ADD THESE */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-secondary));
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--admin-primary-dark), #4A48C4);
}

.btn-outline {
    background: transparent;
    color: var(--admin-primary);
    border-color: var(--admin-primary);
}

.btn-outline:hover {
    background: var(--admin-primary);
    color: white;
}

.btn-danger {
    background: var(--admin-danger);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #E53935;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-edit {
    background: var(--admin-info);
    color: white;
    border: none;
}

.btn-edit:hover {
    background: #47B5F5;
}

.btn-delete {
    background: var(--admin-danger);
    color: white;
    border: none;
}

.btn-delete:hover {
    background: #E53935;
}

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1D1D1F 0%, #2C2C2E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 36px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.login-logo i {
    font-size: 22px;
    color: white;
}

.login-header h2 {
    color: var(--admin-dark);
    margin-bottom: 4px;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-header p {
    color: var(--admin-gray);
    font-size: 0.95rem;
    opacity: 0.9;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--admin-gray);
    font-size: 1.1rem;
    z-index: 1;
}

.input-group .toggle-password {
    left: auto;
    right: 18px;
    cursor: pointer;
    color: var(--admin-primary);
    transition: color 0.3s ease;
}

.input-group .toggle-password:hover {
    color: var(--admin-primary-dark);
}

.input-group input {
    width: 100%;
    padding: 13px 52px;
    border: 2px solid var(--admin-border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.input-group input:focus {
    border-color: var(--admin-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.security-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.security-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--admin-border);
    cursor: pointer;
    appearance: none;
    position: relative;
    transition: all 0.3s ease;
}

.security-check input[type="checkbox"]:checked {
    background: var(--admin-primary);
    border-color: var(--admin-primary);
}

.security-check input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.security-check label {
    font-size: 0.9rem;
    color: var(--admin-secondary);
    cursor: pointer;
    user-select: none;
}

.login-form .btn {
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    margin-top: 4px;
}

.login-status {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    text-align: center;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-status.error {
    background: rgba(255, 59, 48, 0.1);
    color: var(--admin-danger);
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.login-status.success {
    background: rgba(52, 199, 89, 0.1);
    color: var(--admin-success);
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.security-features {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--admin-border);
}

.security-features p {
    font-size: 0.8rem;
    color: var(--admin-gray);
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-features i {
    color: var(--admin-success);
    font-size: 0.9rem;
}

/* Admin Dashboard */
.admin-dashboard {
    min-height: 100vh;
    background: linear-gradient(180deg, #F5F5F7 0%, #FFFFFF 100%);
}

/* Admin Navigation - IMPROVED */
.admin-nav {
    background: white;
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--admin-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.admin-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.admin-nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.admin-nav-left h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--admin-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-nav-left h2 i {
    color: var(--admin-primary);
    font-size: 1.2rem;
}

.admin-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    background: var(--admin-light);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--admin-dark);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--admin-success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(52, 199, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

.session-time {
    background: rgba(255, 59, 48, 0.1);
    color: var(--admin-danger);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    font-feature-settings: "tnum";
}

.admin-nav-right {
    display: flex;
    gap: 12px;
}

/* Admin Main Content */
.admin-main {
    padding: 40px 0 80px;
}

/* Stats Section - IMPROVED */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 28px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--admin-border);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--admin-primary), var(--admin-secondary));
    border-radius: 20px 20px 0 0;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.stat-card i {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card h3 {
    font-size: 2.4rem;
    margin: 12px 0;
    color: var(--admin-dark);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stat-card p {
    color: var(--admin-gray);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Admin Sections - IMPROVED */
.admin-section {
    background: white;
    border-radius: 20px;
    padding: 36px;
    margin-bottom: 36px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--admin-border);
    transition: transform 0.3s ease;
}

.admin-section:hover {
    transform: translateY(-2px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--admin-light);
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--admin-dark);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.section-header h3 i {
    color: var(--admin-primary);
    font-size: 1.3rem;
}

.section-header p {
    color: var(--admin-gray);
    margin: 8px 0 0;
    font-size: 0.95rem;
    max-width: 600px;
    line-height: 1.5;
}

.section-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    padding: 12px 20px;
    border: 2px solid var(--admin-border);
    border-radius: 12px;
    font-size: 0.95rem;
    min-width: 280px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--admin-light);
}

.search-input:focus {
    outline: none;
    border-color: var(--admin-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.search-input::placeholder {
    color: var(--admin-gray);
}

/* Admin Form - IMPROVED */
.admin-form {
    margin-top: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--admin-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--admin-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid var(--admin-border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: var(--admin-dark);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(0, 122, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--admin-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.form-group small {
    font-size: 0.85rem;
    color: var(--admin-gray);
    margin-top: 6px;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    gap: 16px;
    padding-top: 24px;
    border-top: 2px solid var(--admin-light);
    margin-top: 8px;
}

/* Custom Model Styling */
#modelGroup {
    position: relative;
}

#modelCustom {
    margin-top: 12px;
    transition: all 0.3s ease;
    border: 2px solid var(--admin-border);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: inherit;
}

#modelCustom:focus {
    border-color: var(--admin-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

#useCustomModel {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border-radius: 4px;
    border: 2px solid var(--admin-border);
    cursor: pointer;
    appearance: none;
    position: relative;
    vertical-align: middle;
}

#useCustomModel:checked {
    background: var(--admin-primary);
    border-color: var(--admin-primary);
}

#useCustomModel:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#useCustomModel + label {
    font-weight: normal;
    color: var(--admin-gray);
    cursor: pointer;
    vertical-align: middle;
    user-select: none;
}

/* Admin Table - IMPROVED */
.table-container {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--admin-border);
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.admin-table thead {
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-secondary));
}

.admin-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-table th:first-child {
    border-radius: 16px 0 0 0;
}

.admin-table th:last-child {
    border-radius: 0 16px 0 0;
}

.admin-table tbody tr {
    border-bottom: 1px solid var(--admin-border);
    transition: all 0.2s ease;
}

.admin-table tbody tr:last-child {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: var(--admin-light);
}

.admin-table td {
    padding: 20px;
    color: var(--admin-dark);
    vertical-align: middle;
}

/* Brand Badges in Table */
.admin-table td:nth-child(2) {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white !important;
    white-space: nowrap;
}

.brand-iphone {
    background: linear-gradient(135deg, #007AFF, #5856D6) !important;
}

.brand-samsung {
    background: linear-gradient(135deg, #1428A0, #1C3FEB) !important;
}

.brand-honor {
    background: linear-gradient(135deg, #FF6B35, #FF9500) !important;
}

.brand-huawei {
    background: linear-gradient(135deg, #FF0000, #FF6B35) !important;
}

.brand-xiaomi {
    background: linear-gradient(135deg, #FF6900, #FF9500) !important;
}

.brand-oneplus {
    background: linear-gradient(135deg, #EB0028, #FF0033) !important;
}

.brand-google {
    background: linear-gradient(135deg, #4285F4, #34A853) !important;
}

.brand-other {
    background: linear-gradient(135deg, #8E44AD, #9B59B6) !important;
}

/* Condition and Status Badges */
.condition-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.condition-badge.new {
    background: rgba(52, 199, 89, 0.1);
    color: #27ae60;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.condition-badge.used {
    background: rgba(255, 149, 0, 0.1);
    color: #f39c12;
    border: 1px solid rgba(255, 149, 0, 0.2);
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.status-badge.in-stock {
    background: rgba(52, 199, 89, 0.1);
    color: #27ae60;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.status-badge.available {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.status-badge.pre-order,
.status-badge.coming-soon {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.2);
}

.status-badge.out-of-stock {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.admin-table .action-buttons {
    display: flex;
    gap: 8px;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 2px solid var(--admin-light);
}

.table-info {
    font-size: 0.95rem;
    color: var(--admin-gray);
    font-weight: 500;
}

.table-info span {
    color: var(--admin-dark);
    font-weight: 700;
}

.pagination {
    display: flex;
    gap: 8px;
}

.page-btn {
    padding: 10px 16px;
    border: 2px solid var(--admin-border);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--admin-dark);
    transition: all 0.3s ease;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(.active) {
    border-color: var(--admin-primary);
    color: var(--admin-primary);
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--admin-primary);
    color: white;
    border-color: var(--admin-primary);
    font-weight: 600;
}

/* Modal - IMPROVED */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-secondary));
    color: white;
}

.modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 600;
}

.close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    max-height: 60vh;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    padding: 18px;
    border-radius: 12px;
    border-left: 4px solid var(--admin-primary);
    background: var(--admin-light);
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.activity-item.success {
    border-left-color: var(--admin-success);
}

.activity-item.error {
    border-left-color: var(--admin-danger);
}

.activity-time {
    font-size: 0.85rem;
    color: var(--admin-gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-time i {
    font-size: 0.8rem;
}

.activity-text {
    font-size: 0.95rem;
    color: var(--admin-dark);
    font-weight: 500;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .search-input {
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 36px 24px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .admin-nav .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 16px;
    }
    
    .admin-nav-left {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .admin-nav-right {
        width: 100%;
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .section-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .search-input {
        min-width: 100%;
        width: 100%;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        font-size: 0.85rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 16px;
    }
    
    .admin-table td:nth-child(2) {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .brand-badge {
        align-self: flex-start;
    }
    
    .table-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .pagination {
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .admin-main {
        padding: 24px 0 60px;
    }
    
    .admin-section {
        padding: 24px;
        margin: 0 16px 24px;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 0 16px 24px;
    }
    
    .stat-card {
        padding: 24px;
    }
    
    .section-header h3 {
        font-size: 1.3rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 0 10px;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    border: 3px solid var(--admin-border);
    border-top-color: var(--admin-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--admin-gray);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--admin-dark);
}

.empty-state p {
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Success/Error Messages */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification.success {
    background: var(--admin-success);
    color: white;
}

.notification.error {
    background: var(--admin-danger);
    color: white;
}

.notification.info {
    background: var(--admin-primary);
    color: white;
}

.notification i {
    font-size: 1.2rem;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.product-type-selector {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: var(--admin-light);
    border-radius: 12px;
    margin-bottom: 24px;
}

.product-type-btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 1rem;
}

.laptop-only {
    transition: all 0.3s ease;
}
/* Product Type Selector */
.product-type-selector {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: var(--admin-light);
    border-radius: 12px;
    margin-bottom: 24px;
}

.product-type-btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-type-btn.active {
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-secondary)) !important;
    color: white !important;
    border-color: var(--admin-primary) !important;
}

.product-type-btn:not(.active) {
    background: transparent;
    color: var(--admin-primary);
    border: 2px solid var(--admin-primary);
}

.product-type-btn:not(.active):hover {
    background: var(--admin-primary);
    color: white;
}

/* Laptop-only fields transition */
.laptop-only {
    transition: all 0.3s ease;
}

/* Add these styles at the end of your existing admin.css file */

/* Custom Input Fields */
.custom-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--admin-primary);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(0, 122, 255, 0.05);
    color: var(--admin-dark);
    margin-top: 10px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-input:focus {
    border-color: var(--admin-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
    background: white;
}

.custom-input::placeholder {
    color: var(--admin-gray);
    font-style: italic;
}

/* Highlight custom options in dropdowns */
option[value="custom"],
option[value="other"] {
    background: rgba(0, 122, 255, 0.1);
    font-weight: 600;
}

/* ============================================================================
   CUSTOM INPUT FIELDS - PROFESSIONAL STYLING
   ============================================================================ */

/* Custom Input Fields */
.custom-input {
    width: 100%;
    padding: 14px 18px;
    padding-left: 45px;
    border: 2px solid var(--admin-primary);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23007AFF" viewBox="0 0 16 16"><path d="M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z"/><path fill-rule="evenodd" d="M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5v11z"/></svg>') no-repeat 16px center;
    color: var(--admin-dark);
    margin-top: 10px;
    animation: slideDown 0.3s ease;
    font-weight: 500;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
    }
}

.custom-input:focus {
    border-color: var(--admin-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
    background-color: white;
}

.custom-input::placeholder {
    color: var(--admin-gray);
    font-style: italic;
    font-weight: 400;
}

/* Highlight custom options in dropdowns */
option[value="custom"] {
    background: linear-gradient(90deg, rgba(0, 122, 255, 0.1), rgba(88, 86, 214, 0.1));
    font-weight: 600;
    color: var(--admin-primary);
    padding: 8px 12px;
}

/* Visual indicator for custom entry mode */
select:focus:has(option[value="custom"]:checked) {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
}