/* Custom Admin Styles */

/* Hide scrollbar for clean UI but keep functionality */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Scrollbar for Main Content */
#main-content::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
#main-content::-webkit-scrollbar-track {
    background: transparent;
}
#main-content::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}
#main-content::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* Nav Active State */
.nav-link.active {
    background-color: #e53935;
    color: white;
}
.nav-link.active .material-symbols-outlined {
    color: white;
}

/* Table Styles */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.admin-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.admin-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.875rem;
}
.admin-table tbody tr:hover {
    background-color: #f1f5f9;
}
.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-pending { background-color: #fef3c7; color: #d97706; }
.badge-confirmed { background-color: #dbeafe; color: #2563eb; }
.badge-shipping { background-color: #f3e8ff; color: #9333ea; }
.badge-delivered { background-color: #dcfce3; color: #16a34a; }
.badge-cancelled { background-color: #fee2e2; color: #dc2626; }
.badge-draft { background-color: #e2e8f0; color: #475569; }
.badge-published { background-color: #dcfce3; color: #16a34a; }

/* Form Elements */
.admin-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    background-color: #fff;
}
.admin-input:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.2);
}
.admin-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.375rem;
}

/* Modals */
.modal-overlay {
    animation: fadeIn 0.2s ease-out;
}
.modal-content {
    animation: slideInUp 0.3s ease-out;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(1rem) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Toast */
.toast-enter {
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.toast-leave {
    animation: fadeOut 0.3s forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
    to { opacity: 0; transform: scale(0.9); }
}
