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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.navbar {
    background-color: #2c3e50;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.navbar a:hover {
    background-color: #34495e;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

h2 {
    color: #34495e;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.message {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #ecf0f1;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.content {
    margin-top: 2rem;
}

.content ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

.content li {
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    margin-top: 2rem;
}

/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
}

.form-input:hover {
    border-color: #bbb;
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #7f8c8d;
}

.form-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: #3498db;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-button:hover {
    background-color: #2980b9;
}

.form-button:active {
    background-color: #21618c;
}

.form-link-text {
    text-align: center;
    margin-top: 1.5rem;
    color: #555;
}

.form-link-text a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.form-link-text a:hover {
    text-decoration: underline;
}

/* Error and Success Messages */
.error-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #e74c3c;
    color: white;
    border-radius: 4px;
    border-left: 4px solid #c0392b;
}

.success-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #2ecc71;
    color: white;
    border-radius: 4px;
    border-left: 4px solid #27ae60;
}

/* Admin Page Styles */
.admin-menu-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.admin-menu-link:hover {
    background-color: #3498db;
    color: white;
    text-decoration: none;
}

/* Profile Page Styles */
.info-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 1rem;
}

.info-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.info-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-label {
    display: inline-block;
    font-weight: 600;
    color: #2c3e50;
    min-width: 150px;
}

.info-value {
    color: #555;
    font-size: 1.1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 1.5rem;
    background-color: #2c3e50;
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: white;
}

.modal-close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: #ecf0f1;
}

.modal-body {
    padding: 2rem;
}

/* User Table Styles */
.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-table thead {
    background-color: #34495e;
    color: white;
}

.user-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.user-table td {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.user-table-row:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

.user-table-row.selected-row {
    background-color: #d4edff;
    border-left: 4px solid #3498db;
}

.user-table-row.selected-row:hover {
    background-color: #c2e0ff;
}

.user-table-row:last-child td {
    border-bottom: none;
}

.user-table-cell {
    color: #2c3e50;
}
