/* 1. Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    padding-top: 70px; /* Header-ന് താഴെ വരാൻ */
    padding-bottom: 80px; /* Footer-ന് മുകളിൽ നിൽക്കാൻ */
}

/* 2. Sticky Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: #2c3e50;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 15px;
    font-size: 0.9rem;
}

/* 3. Container & Cards */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 15px;
}

.card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* 4. Common Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: #27ae60;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background-color: #219150;
}

/* 5. Form Elements */
input[type="text"], 
input[type="password"], 
input[type="number"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* 6. AJAX Search Box Design */
#search_results {
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    width: 93%; /* Input field-ന് അനുസരിച്ച് */
    z-index: 999;
}

.search-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.search-item:hover {
    background-color: #f8f9fa;
    color: #27ae60;
}

/* 7. Footer */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .container { padding: 10px; }
    header { padding: 0 10px; }
}