/* ========== ADMIN PANEL STYLES ========== */

.admin-dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    gap: 0;
}

/* ========== ADMIN SIDEBAR ========== */
.admin-sidebar {
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
    color: white;
    padding: 0;
    border-right: 2px solid #FF6B35;
}

.admin-logo {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
}

.admin-logo h2 {
    margin: 0;
    font-size: 20px;
    color: #FF6B35;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.admin-nav-item {
    display: block;
    padding: 15px 20px;
    color: #ccc;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.3s;
    font-size: 14px;
}

.admin-nav-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
    border-left-color: #FF6B35;
}

.admin-nav-item.active {
    background: rgba(255, 107, 53, 0.2);
    color: #FF6B35;
    border-left-color: #FF6B35;
    font-weight: 600;
}

/* ========== ADMIN CONTENT ========== */
.admin-content {
    padding: 40px;
    background: #F8FAFC;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #E0E0E0;
}

.admin-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: #1A1A1A;
}

.admin-user {
    color: #666;
    font-size: 14px;
}

/* ========== STATS GRID ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #FF6B35;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.05), transparent);
    border-radius: 50%;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #FF6B35;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.stat-icon {
    font-size: 32px;
    position: absolute;
    bottom: 15px;
    right: 20px;
    opacity: 0.2;
}

/* ========== ADMIN FORM ========== */
.admin-form-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.admin-form-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1A1A1A;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #1A1A1A;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.form-group.checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-group.checkbox label {
    cursor: pointer;
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-primary {
    background: #FF6B35;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-primary:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: #E0E0E0;
    color: #1A1A1A;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #D0D0D0;
}

/* ========== SUCCESS MESSAGE ========== */
.success-message {
    background: #D4EDDA;
    border: 1px solid #C3E6CB;
    color: #27AE60;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-weight: 500;
}

/* ========== ADMIN SECTION ========== */
.admin-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.admin-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1A1A1A;
}

/* ========== ADMIN TABLE ========== */
.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #E0E0E0;
}

.admin-table th {
    background: #F8FAFC;
    font-weight: 600;
    color: #1A1A1A;
}

.admin-table tbody tr {
    transition: all 0.3s;
}

.admin-table tbody tr:hover {
    background: #F8FAFC;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* ========== STATUS BADGES ========== */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

.status-active {
    background: #D4EDDA;
    color: #27AE60;
}

.status-inactive {
    background: #F8D7DA;
    color: #C0392B;
}

.status-pending {
    background: #FFF3CD;
    color: #F39C12;
}

.status-confirmed {
    background: #D1ECF1;
    color: #0C5460;
}

.status-shipped {
    background: #E7F3FF;
    color: #0066CC;
}

.status-delivered {
    background: #D4EDDA;
    color: #27AE60;
}

.status-cancelled {
    background: #F8D7DA;
    color: #C0392B;
}

/* ========== ACTION BUTTONS ========== */
.btn-link {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-block;
    margin-right: 10px;
}

.btn-link:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #E55A2B;
}

.btn-link.delete {
    color: #C0392B;
}

.btn-link.delete:hover {
    background: rgba(192, 57, 43, 0.1);
    color: #A93226;
}

/* ========== QUICK ACTIONS ========== */
.quick-actions {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.quick-actions h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1A1A1A;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

/* ========== ORDER DETAILS ========== */
.order-details {
    background: #F8FAFC;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.order-details p {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

.order-details strong {
    color: #1A1A1A;
}

/* ========== EMPTY MESSAGE ========== */
.empty-message {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 16px;
}

.empty-message a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
}

.empty-message a:hover {
    text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .admin-dashboard {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        border-right: none;
        border-bottom: 2px solid #FF6B35;
    }

    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .admin-nav-item {
        flex: 1;
        text-align: center;
        border-left: none;
        border-bottom: 4px solid transparent;
        padding: 12px;
    }

    .admin-nav-item:hover,
    .admin-nav-item.active {
        border-left-color: transparent;
        border-bottom-color: #FF6B35;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-content {
        padding: 20px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .admin-header h1 {
        font-size: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 28px;
    }

    .admin-nav {
        flex-direction: column;
    }

    .admin-nav-item {
        border-bottom: none;
        border-left: 4px solid transparent;
        padding: 12px 15px;
        text-align: left;
    }

    .admin-nav-item:hover,
    .admin-nav-item.active {
        border-left-color: #FF6B35;
        border-bottom-color: transparent;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px;
        font-size: 12px;
    }

    .btn-link {
        padding: 3px 6px;
        font-size: 12px;
    }
}
