/* 
   Lipid Knowledge Hub Design System
   Theme: Bio-Clinical Navigator (Vibrant Pink & Deep Teal/Blue)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #ec4899;        /* Brand Pink */
    --primary-hover: #db2777;
    --secondary: #0284c7;      /* Brand Blue */
    --secondary-hover: #0369a1;
    --dark-bg: #ffffff;        /* Lightened */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-main: #1e293b;
    --text-muted: #475569;
    --success: #10b981;
    
    /* Gradients */
    --brand-gradient: linear-gradient(135deg, #ec4899 0%, #0284c7 100%);
    --bg-gradient: linear-gradient(135deg, #ffffff 0%, #f1d5e1 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* App Layout */
.app-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Glassmorphism Card System */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    padding: 0.85rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.25);
    background: rgba(255, 255, 255, 0.9);
}

select.form-control option {
    background: var(--dark-bg);
    color: var(--text-main);
}

/* Buttons */
.btn-primary {
    background: var(--brand-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.2);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(236, 72, 153, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.4) 0%, rgba(2, 132, 199, 0.4) 100%);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    box-shadow: none;
}

/* Screen 1 Footer Logos */
.logo-footer {
    margin-top: 3.5rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.logo-box {
    background: white;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Screen 2 Tabs System */
.tab-container {
    margin-bottom: 2rem;
}

.tabs-nav {
    display: flex;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    padding: 0.4rem;
    border-radius: 14px;
    width: 100%;
    gap: 0.25rem;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.03);
}

.tab-btn.active {
    color: white;
    background: var(--brand-gradient);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
}

/* Resource Grid System */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.resource-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    min-height: 200px;
}

.resource-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.resource-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.resource-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    line-height: 1.4;
}

.resource-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.resource-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-action {
    margin-top: auto;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
    gap: 0.5rem;
}

.btn-download:hover {
    background: var(--primary);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* User Info Bar */
.user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.user-bar .user-welcome {
    font-weight: 500;
}

.user-bar .user-welcome span {
    color: var(--primary);
    font-weight: 600;
}

.user-bar .logout-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.user-bar .logout-link:hover {
    color: var(--primary);
}

/* Admin Dashboard Table */
.admin-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-main);
    font-weight: 600;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}

.admin-table tr:hover td {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-main);
}

.admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--success);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-export:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}

/* Responsive adjust */
@media(max-width: 600px) {
    .tabs-nav {
        flex-direction: column;
    }
    .logos-container {
        gap: 1rem;
        flex-wrap: nowrap;
    }
    .logo-box {
        min-width: 0;
        width: 100%;
        height: 70px;
        padding: 0.4rem;
    }
    header h1 {
        font-size: 2rem;
    }
}
