
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

a {
    color: #02350D;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container ul {
    list-style: none;
}

.container img {
    max-width: 100%;
    height: auto;
}

.main-header {
    background-color: #02350D;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.main-nav li {
    margin-right: 1.5rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.main-nav a:hover {
    text-decoration: underline;
}

.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 180px);
}

.page-title {
    margin-bottom: 1.5rem;
    color: #02350D;
}


.main-footer {
    background-color: #02350D;
    color: white;
    padding: 1rem 0;
    text-align: center;
}


.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}


.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.25rem;
    background-color: #02350D;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn:hover {
    background-color: #02350D;
    text-decoration: none;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bd2130;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}


.login-form {
    max-width: 400px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.list-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.list-card:hover {
    transform: translateY(-5px);
}

.list-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.list-info {
    padding: 1rem;
}

.list-name {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #02350D;
}

.list-position {
    color: #666;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.list-institute {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}


.admin-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.admin-sidebar {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.admin-sidebar h3 {
    margin-bottom: 1rem;
    color: #02350D;
}

.admin-sidebar ul li {
    margin-bottom: 0.5rem;
}

.admin-sidebar ul li.active {
    font-weight: bold;
    color: #02350D;
}

.admin-sidebar ul li.active a {
    color: #02350D;
    text-decoration: underline;
}

.admin-content {
    flex: 3;
    min-width: 300px;
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.filter-form {
    display: flex;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-form .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}


.logout-link {
    cursor: pointer;
}


.no-results-message {
    text-align: center;
}



@media screen and (max-width: 768px) {
    .admin-sidebar {
        max-width: 100%;
    }
    
    /* .admin-layout {
        flex-direction: column;
    }
    
    .main-nav ul {
        flex-direction: column;
    } */
    
    .main-nav li {
        margin-bottom: 0.5rem;
    }
    
    .directory-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}