/* NanoredAPI2 — Custom styles */

/* Navigation items */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
    transition: all 0.15s;
    text-decoration: none;
}
.nav-item:hover {
    background: rgba(55, 65, 81, 0.5);
    color: #e5e7eb;
}
.nav-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}
.nav-item.active svg {
    color: #818cf8;
}

/* Mobile nav */
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.25rem 0.5rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s;
}
.mobile-nav.active {
    color: #818cf8;
}
.mobile-nav:hover {
    color: #e5e7eb;
}

/* Safe area for iPhone notch */
.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Card */
.card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 0.75rem;
    padding: 1rem;
}

/* Stat card */
.stat-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}

/* Data table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}
.data-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #1f2937;
    white-space: nowrap;
}
.data-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.5);
    color: #d1d5db;
}
.data-table tbody tr:hover {
    background: rgba(31, 41, 55, 0.3);
}
.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* SQL textarea */
textarea {
    tab-size: 4;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
    .stat-card {
        padding: 0.625rem 0.75rem;
    }
    .card {
        padding: 0.75rem;
    }
}

/* Animations */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Print */
@media print {
    .nav-item, .mobile-nav, aside, header {
        display: none !important;
    }
    main {
        margin-left: 0 !important;
    }
}
