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

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

:root {
    /* Modernized Color Palette */
    --color-bg: #f5f8f7; /* Lighter, cleaner background */
    --color-surface: #ffffff;
    --color-primary: #0f766e; /* Slightly deeper, more premium teal */
    --color-primary-dark: #0f5132;
    --color-primary-light: #e0f2fe; /* Soft blue-ish light background */
    --color-text: #1f2937; /* Darker, crisper text (gray-800) */
    --color-text-muted: #6b7280; /* Gray-500 */
    --color-border: #e5e7eb; /* Soft border */
    
    /* Modern Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radii */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 16px; /* slightly smaller baseline for modern look */
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { 
    color: var(--color-primary); 
    text-decoration: none; 
    transition: color var(--transition-fast); 
}
a:hover { 
    color: var(--color-primary-dark); 
}

/* Glassmorphism Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-brand {
    color: var(--color-text);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.navbar-brand img {
    height: 38px;
    width: 38px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.navbar-brand:hover { 
    color: var(--color-primary); 
}
.navbar-links { 
    display: flex; 
    gap: 0.75rem; 
}
.navbar-links a {
    color: var(--color-text-muted);
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    background: transparent;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-links a:hover { 
    background: rgba(0,0,0,0.04); 
    color: var(--color-text); 
}
.navbar-links a.active { 
    background: var(--color-primary); 
    color: #fff; 
    box-shadow: var(--shadow-sm);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    flex: 1;
    width: 100%;
}

.footer {
    background: #ffffff;
    color: var(--color-text-muted);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    margin-top: auto;
    border-top: 1px solid var(--color-border);
}

/* Modern Card */
.card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}
.card.hoverable:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: rgba(15, 118, 110, 0.1);
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    text-decoration: none;
    line-height: 1.2;
}
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #115e59);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(15, 118, 110, 0.2), 0 2px 4px -1px rgba(15, 118, 110, 0.1);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #115e59, var(--color-primary-dark));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(15, 118, 110, 0.3), 0 4px 6px -2px rgba(15, 118, 110, 0.15);
}

/* Inputs */
.search-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-family: inherit;
    background: var(--color-surface);
    color: var(--color-text);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    -webkit-appearance: none;
    appearance: none;
}
.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.15);
}
.search-input::placeholder {
    color: #9ca3af;
}

select.search-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}
.badge-green { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-blue { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-yellow { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a;}
.badge-red { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca;}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}
.pagination a:hover { 
    background: var(--color-bg); 
    border-color: #d1d5db; 
    color: var(--color-text);
}
.pagination .active { 
    background: var(--color-primary); 
    color: #fff; 
    border-color: var(--color-primary); 
    box-shadow: var(--shadow-sm); 
}

@media (max-width: 768px) {
    body { font-size: 15px; }
    .container { padding: 1.5rem 1rem; }
    .navbar { padding: 0.75rem 1rem; }
    .navbar-brand { font-size: 1.15rem; }
    .navbar-brand img { height: 30px; width: 30px; }
    .navbar-links { gap: 0.35rem; flex-shrink: 0; }
    .navbar-links a { padding: 0.35rem 0.75rem; font-size: 0.82rem; white-space: nowrap; gap: 0.25rem; }
    .card { padding: 1.5rem; }
}
