/* ============================================================
   E-CYBER SERVICES — Custom Styles
   ============================================================ */

/* ===== Smooth scrolling ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Dashboard sidebar tabs ===== */
.dash-tab {
    color: #64748b;
    background: transparent;
}
.dash-tab:hover {
    background: #f1f5f9;
    color: #1e293b;
}
.dash-tab.active {
    background: #eff6ff;
    color: #2563eb;
}

/* ===== History filter pills ===== */
.history-filter {
    background: #f1f5f9;
    color: #64748b;
}
.history-filter:hover {
    background: #e2e8f0;
    color: #334155;
}
.history-filter.active {
    background: #2563eb;
    color: #fff;
}

/* ===== Admin nav buttons ===== */
.admin-nav-btn {
    background: #f1f5f9;
    color: #64748b;
}
.admin-nav-btn:hover {
    background: #e2e8f0;
    color: #334155;
}
.admin-nav-btn.active {
    background: #2563eb;
    color: #fff;
}

/* ===== Admin filter pills ===== */
.admin-filter {
    background: #f1f5f9;
    color: #64748b;
}
.admin-filter:hover {
    background: #e2e8f0;
    color: #334155;
}
.admin-filter.active {
    background: #2563eb;
    color: #fff;
}

/* ===== Tool category tabs ===== */
.tool-cat-tab {
    background: #f1f5f9;
    color: #64748b;
}
.tool-cat-tab:hover {
    background: #e2e8f0;
    color: #334155;
}
.tool-cat-tab.active {
    background: #2563eb;
    color: #fff;
}

/* ===== Toast animations ===== */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}
.animate-slide-out {
    animation: slideOut 0.3s ease-in forwards;
}

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== Category card hover lift ===== */
#categoriesGrid > a {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#categoriesGrid > a:hover {
    transform: translateY(-4px);
}

/* ===== Urgency radio card styling ===== */
input[type="radio"]:checked + div {
    border-color: #2563eb;
    background-color: #eff6ff;
}
input[name="urgency"][value="express"]:checked + div {
    border-color: #eab308;
    background-color: #fefce8;
}
input[name="urgency"][value="urgent"]:checked + div {
    border-color: #ef4444;
    background-color: #fef2f2;
}
input[type="radio"]:checked + div i {
    color: inherit;
}

/* ===== Dashboard panels ===== */
.dash-panel {
    min-height: 200px;
}

/* ===== Floating chat animation ===== */
#floatingChatBtn {
    animation: pulse-shadow 2s ease-in-out infinite;
}
@keyframes pulse-shadow {
    0%, 100% { box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(37, 99, 235, 0.7); }
}

/* ===== Mobile menu animation ===== */
#mobileMenu {
    animation: fadeDown 0.2s ease-out;
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Notification dropdown ===== */
#notifDropdown {
    animation: fadeDown 0.15s ease-out;
}

/* ===== FAQ icon rotation ===== */
.faq-icon {
    transition: transform 0.2s ease;
}

/* ===== Back to top ===== */
#backToTop {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#backToTop:hover {
    transform: translateY(-3px);
}

/* ===== Focus styles ===== */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ===== Pricing table stripes ===== */
#pricingTableBody tr:nth-child(even) {
    background-color: #f9fafb;
}

/* ===== Auth page ===== */
.auth-tab-btn {
    transition: all 0.2s ease;
}

/* ===== Password strength ===== */
#passwordStrength .h-1 {
    transition: background-color 0.3s ease;
}

/* ===== Selection color ===== */
::selection {
    background: #bfdbfe;
    color: #1e3a8a;
}

/* ===== Link underline on hover ===== */
footer a:hover {
    text-decoration: none;
}

/* ===== Responsive fixes ===== */
@media (max-width: 640px) {
    .admin-panel table {
        font-size: 0.75rem;
    }
    .admin-panel table th,
    .admin-panel table td {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* ===== Print styles ===== */
@media print {
    nav, footer, #floatingChatBtn, #floatingChatWindow, #backToTop {
        display: none !important;
    }
}

/* ===== Skeleton loaders ===== */
.skeleton-loader {
    height: 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}
.skeleton-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    padding: 1.25rem;
}
.skeleton-card .skeleton-loader {
    margin-bottom: 0.5rem;
}
.skeleton-card .skeleton-loader:last-child {
    width: 60%;
    margin-bottom: 0;
}
.skeleton-row .skeleton-loader {
    width: 80%;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
