:root {
    --bg-color: #0d1117;
    --surface-color: rgba(22, 27, 34, 0.75);
    --border-color: rgba(139, 148, 158, 0.3);
    --primary-text: #c9d1d9;
    --secondary-text: #8b949e;
    --accent-color: #58a6ff;
    --accent-hover: #388bfd;
    --font-main: 'Poppins', sans-serif;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--primary-text);
    line-height: 1.7;
    background: radial-gradient(circle, rgba(22,27,34,1) 0%, rgba(13,17,23,1) 100%);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}


.header {
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4dd0e1;
}


.dropdown {
    position: relative;
    display: inline-block;
}

#user-display {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #2c3e50;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 8px 12px;
    border-radius: 4px;
    z-index: 1;
    right: 0;
}

.dropdown-menu a {
    color: white;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    text-decoration: underline;
}

.show {
    display: block;
}

.hero {
    text-align: center;
    padding: 2rem 0;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 0.5rem;
    color: #fff;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--secondary-text);
}


section {
    padding: 1rem 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 4px;
    background: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-text {
    font-size: 1.1rem;
    max-width: 750px;
    margin: 1.5rem auto;
    color: var(--secondary-text);
}

.category-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 10px;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-text);
    text-align: left;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 40px 0 var(--shadow-color);
}

.project-category {
    margin-top: 2em;
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h4 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-align: center;
}

.project-content p {
    color: var(--secondary-text);
    margin-bottom: 1rem;
    flex-grow: 1;
    text-align: justify;
}

.project-links {
    margin-top: auto;
    text-align: center;
}

.active, .inactive {
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.active {
    color: var(--accent-color);
}

.active:hover {
    color: var(--accent-hover);
}

.inactive {
    color: var(--secondary-text);
    cursor: not-allowed;
}


.contact-info {
    margin-top: 2rem;
    font-size: 1.2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    color: var(--secondary-text);
}
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

main.container > h1 {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.settings-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.settings-sidebar {
    flex-basis: 250px; /* Slightly wider for better spacing */
    flex-shrink: 0;
    background-color: #1f2b38;
    border-radius: 8px;
    padding: 1rem;
}
.settings-sidebar nav ul { list-style: none; padding: 0; margin: 0; }
.settings-sidebar nav a { display: block; padding: 0.75rem 1rem; color: var(--primary-text); text-decoration: none; border-radius: 6px; font-weight: 500; transition: background-color 0.2s ease; }
.settings-sidebar nav a:hover { background-color: #2c3e50; }
.settings-sidebar nav a.active { background-color: var(--accent-color); color: #12181f; font-weight: 700; }

.settings-content {
    flex-grow: 1;
}

.card {
    background-color: #1f2b38;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.card h2 { margin-top: 0; border-bottom: 1px solid #3c4a58; padding-bottom: 1rem; margin-bottom: 1.5rem; display: flex; justify-content: space-between; align-items: center;}

/* General Purpose Button Style (like '+ Add New Batch') */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #0d1117;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Table Styles for Management Pages */
.settings-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.settings-content th,
.settings-content td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid #3c4a58;
}

.settings-content thead th {
    background-color: #2c3e50;
    font-weight: 600;
    color: var(--primary-text);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.settings-content tbody tr:hover {
    background-color: #2c3e50;
}

.settings-content td a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    margin: 0 0.25rem;
}

.settings-content td a:hover {
    text-decoration: underline;
}

/* Form Styles for Add/Edit pages */
.profile-form label,
form label { display: block; font-size: 0.9rem; color: #b0c4de; margin-bottom: 0.5rem; margin-top: 1rem; }

.profile-form input,
form input[type="text"],
form input[type="email"],
form select { 
    width: 100%; 
    padding: 0.75rem; 
    margin-bottom: 1rem; 
    border-radius: 6px; 
    border: 1px solid #3c4a58; 
    background-color: #12181f; 
    color: var(--primary-text); 
    font-size: 1rem; 
    font-family: 'Poppins', sans-serif; 
}

form button {
    margin-top: 1rem;
}


#contact iframe {
    width: 100%;
    max-width: 350px;
    height: 500px;
    margin: 2.5rem auto 1rem auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 var(--shadow-color);
}

.search-form { display: flex; gap: 1rem; }
.search-form input { flex-grow: 1; }
#results-container { margin-top: 2rem; }
.status-badge { font-weight: bold; }
.status-accepted .status-badge { color: #27ae60; }
.status-rejected .status-badge { color: #c0392b; }
.status-pending .status-badge { color: #f1c40f; }

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero {
        padding: 6rem 0;
    }

    section {
        padding: 3rem 0;
    }
}