/* style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: #f0f2f5;
    background: url('background.png') no-repeat center center/cover;
    background-attachment: fixed;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* Dark overlay — behind everything, fully non-interactive */
body::before {
    content: '';
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
    pointer-events: none;
}

/* --- Top Header --- */
.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.95);
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.school-logo {
    height: 40px;
    width: 40px;
    border-radius: 50%;
}

.school-name {
    color: #d32f2f;
    font-weight: 700;
    font-size: 1rem;
}

.menu-icon {
    width: 25px;
    cursor: pointer;
}

.menu-icon div {
    width: 100%;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    border-radius: 2px;
}

/* --- Login Card Section --- */
.login-wrapper {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    width: 100%;
    max-width: 350px;
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.app-title {
    font-family: 'Oswald', sans-serif;
    color: #ff4d4d;
    font-size: 3rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* --- Inputs & Dropdown --- */
.input-group {
    margin-bottom: 15px;
}

.input-group input, 
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: #dcdcdc;
    border-radius: 25px;
    font-size: 1rem;
    color: #333;
    outline: none;
    font-weight: 500;
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    cursor: text !important;
}

.input-group input::placeholder {
    color: #777;
    font-weight: bold;
}

.input-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

/* --- Button --- */
.login-btn {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: #e60000;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: background 0.3s;
}

.login-btn:hover {
    background-color: #cc0000;
}

/* --- Logout Button --- */
.logout-btn {
    display: inline-block;
    background: #d32f2f;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    padding: 12px 35px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.5);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.logout-btn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
    color: white;
    text-decoration: none;
}

/* --- Footer --- */
.register-link {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.register-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

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

.alert {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* --- Dashboard Styles --- */
.dashboard-wrapper {
    width: 100%;
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    position: relative;
    z-index: 1;
}

.search-container {
    position: relative;
    width: 90%;
    max-width: 500px;
}

.search-input {
    width: 100%;
    height: 50px;
    border-radius: 25px;
    border: none;
    padding-left: 50px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #555;
    pointer-events: none;
}

/* Fix for input/textarea in forms */
.login-card label {
    pointer-events: none !important;
    user-select: none !important;
}

.login-card input[type="text"],
.login-card input[type="email"],
.login-card input[type="password"],
.login-card textarea,
.login-card select {
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    cursor: text !important;
    background: white !important;
    border: 2px solid #ddd !important;
}

.login-card input:focus,
.login-card textarea:focus,
.login-card select:focus {
    border-color: #d32f2f !important;
    background: #fffef7 !important;
}

/* Ensure dashboard cards and all interactive elements are above overlay */
.content-wrapper,
.dashboard-container,
.admin-wrapper,
.profile-card,
.requests-card,
.tutor-card,
.modal-content,
.table-wrapper,
.stat-card,
input, select, textarea, button, a {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}
