/* Hospital Appointment System - Simple Student CSS */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: Arial, sans-serif; background: #f2f2f2; font-size: 14px; }

.header {
    background: #1565c0;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header h2 { font-size: 18px; }
.header nav a { color: white; text-decoration: none; margin-left: 15px; font-size: 13px; }
.header nav a:hover { text-decoration: underline; }

.container { max-width: 900px; margin: 30px auto; background: white; padding: 25px; border: 1px solid #ccc; }
.container-sm { max-width: 480px; margin: 40px auto; background: white; padding: 25px; border: 1px solid #ccc; }

h2.page-title { color: #1565c0; border-bottom: 2px solid #1565c0; padding-bottom: 8px; margin-bottom: 20px; }
h3.section-title { color: #333; margin: 20px 0 10px; }

/* Forms */
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 4px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 7px; border: 1px solid #aaa; font-size: 13px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Buttons */
.btn { padding: 7px 16px; border: none; cursor: pointer; font-size: 13px; }
.btn-primary { background: #1565c0; color: white; }
.btn-primary:hover { background: #0d47a1; }
.btn-danger { background: #c62828; color: white; }
.btn-danger:hover { background: #b71c1c; }
.btn-success { background: #2e7d32; color: white; }
.btn-success:hover { background: #1b5e20; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
th { background: #1565c0; color: white; padding: 8px 10px; text-align: left; }
td { border: 1px solid #ccc; padding: 8px 10px; }
tr:nth-child(even) td { background: #f9f9f9; }

/* Tabs */
.tabs { display: flex; border-bottom: 2px solid #1565c0; margin-bottom: 20px; }
.tab-btn {
    padding: 7px 18px; border: none; cursor: pointer; background: #e0e0e0;
    border: 1px solid #999; border-bottom: none; margin-right: 4px; font-size: 13px;
}
.tab-btn.active { background: #1565c0; color: white; }

/* Alerts */
.alert { padding: 10px 15px; margin-bottom: 15px; font-size: 13px; border: 1px solid; }
.alert-error { background: #ffebee; border-color: #e57373; color: #c62828; }
.alert-success { background: #e8f5e9; border-color: #81c784; color: #2e7d32; }

/* Role tabs for login */
.role-tabs { text-align: center; margin-bottom: 15px; }
.role-btn {
    padding: 6px 16px; margin: 0 3px; border: 1px solid #999; cursor: pointer;
    background: #e0e0e0; font-size: 13px;
}
.role-btn.active { background: #1565c0; color: white; }

/* Fieldset */
fieldset { border: 1px solid #ccc; padding: 15px; margin-bottom: 15px; }
legend { font-weight: bold; color: #1565c0; padding: 0 5px; }

/* Info table */
.info-table td:first-child { font-weight: bold; background: #f0f0f0; width: 130px; }
