:root {
    --primary: #2c5c44;
    --secondary: #28b155;
    --success: #00b894;
    --danger: #d63031;
    --bg: #dfe6e9;
    --text: #2d3436;
    --white: #ffffff;
}

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

body {
    font-family:
        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
        sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

header h1 {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 10px;
}

h1 {
    color: var(--primary);
    font-size: 24px;
}
h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

h1 a {
    display: inline-block;
    margin-bottom: 2px;
    color: var(--primary);
    font-size: 18px;
}

.card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

input[type='text'],
input[type='password'],
input[type='date'],
input[type='tel'],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

.btn-secondary {
    background: var(--secondary);
}
.btn-success {
    background: var(--success);
}
.btn-danger {
    background: var(--danger);
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}
.success {
    background: #55efc4;
    color: #006266;
}
.danger {
    background: #fab1a0;
    color: #c0392b;
}

.hidden {
    display: none;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* Nav */
nav {
    background: var(--primary);
    padding: 10px;
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}
nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
}

/* Attendance Items */
.student-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}
.student-info {
    flex: 1;
}
.student-actions {
    display: flex;
    gap: 5px;
}
.btn-small {
    padding: 8px 12px;
    font-size: 12px;
    width: auto;
    margin-top: 0;
}

/* Table */
.table-container {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
th {
    background: #f8f9fa;
}

.link-admin {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
}
