/* Custom Biotech Clean Components */

:root {
    --sidebar-width: 16rem;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sidebar Navigation (Manual Styles because @apply needs build tools) */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: #94a3b8;
    /* slate-400 */
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: #1e293b;
    /* slate-800 */
    color: #ffffff;
}

.nav-link.active {
    background-color: #0284c7;
    /* biotech-600 */
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.2);
}

/* Cards & Containers */
.glass-card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.dark .glass-card {
    background-color: rgba(15, 23, 42, 0.7);
    /* slate-900/70 */
    border: 1px solid rgba(30, 41, 59, 0.5);
    /* slate-800/50 */
}

.glass-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(1.01);
    border-color: rgba(14, 165, 233, 0.3);
    /* biotech-500/30 */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    /* slate-300 */
    border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #334155;
    /* slate-700 */
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
    /* slate-400 */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    /* slate-200 */
    border-radius: 0.75rem;
    transition: all 0.2s;
    outline: none;
}

.dark .form-input {
    background-color: #1e293b;
    /* slate-800 */
    border: 1px solid #334155;
    /* slate-700 */
    color: #e2e8f0;
}

.form-input:focus {
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.5);
    border-color: #0ea5e9;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    /* slate-700 */
    margin-bottom: 0.25rem;
    margin-left: 0.25rem;
}

.dark .form-label {
    color: #cbd5e1;
    /* slate-300 */
}

/* Detail View Layout */
.technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.tech-tag {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background-color: #f1f5f9;
    /* slate-100 */
    border: 1px solid #e2e8f0;
    /* slate-200 */
}

.dark .tech-tag {
    background-color: #1e293b;
    /* slate-800 */
    border: 1px solid #334155;
    /* slate-700 */
}

.tech-tag-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    /* slate-500 */
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tech-tag-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    /* slate-800 */
}

.dark .tech-tag-value {
    color: #f1f5f9;
}

/* Theme adaptation */
.font-size-small {
    font-size: 14px;
}

.font-size-normal {
    font-size: 16px;
}

.font-size-large {
    font-size: 18px;
}

/* Placeholder for products without photo */
.no-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #94a3b8;
    text-align: center;
    padding: 1.5rem;
}

.dark .no-photo-placeholder {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #475569;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.6;
}

.placeholder-text {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

.placeholder-subtext {
    font-size: 0.625rem;
    margin-top: 0.25rem;
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    #sidebar {
        transform: translateX(-100%);
    }

    #sidebar.open {
        transform: translateX(0);
    }

    #main-content {
        margin-left: 0 !important;
    }
}