@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Poppins', sans-serif; 
}

body { 
    background-color: #f4f9f4; 
    color: #333; 
    padding: 20px; 
}

/* Login Page Styles */
.login-body { display: flex; justify-content: center; align-items: center; height: 100vh; background: #e8f5e9; padding: 15px;}
.login-container { background: white; padding: 40px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); width: 100%; max-width: 400px; text-align: center; }
.login-container h2 { margin-bottom: 20px; color: #2e7d32; }

/* Dashboard & Registration Styles */
.container { 
    max-width: 1000px; 
    margin: 0 auto; 
    background: #ffffff; 
    padding: 30px; 
    border-radius: 10px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    width: 100%;
}

header { margin-bottom: 30px; color: #1b5e20; border-bottom: 2px solid #4caf50; padding-bottom: 15px; text-align: center; }
header h1 { font-size: 2rem; }

.form-section { margin-bottom: 25px; background: #e8f5e9; padding: 20px; border-radius: 8px; }
.form-section h2 { margin-bottom: 15px; color: #2e7d32; font-size: 1.2rem; }
form { display: flex; flex-direction: column; gap: 15px; }

input, select { 
    padding: 12px; 
    border: 1px solid #ccc; 
    border-radius: 5px; 
    font-size: 16px; 
    width: 100%; 
}

button { 
    padding: 12px 15px; 
    background-color: #4caf50; 
    color: white; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 16px;
    font-weight: 600; 
    transition: 0.3s; 
    width: 100%;
}
button:hover { background-color: #388e3c; }

.btn-secondary { background-color: #2196f3; }
.btn-danger { background-color: #f44336; }
.btn-warning { background-color: #ff9800; }
.btn-info { background-color: #607d8b; }

.actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; padding: 15px; background: #f9f9f9; border-radius: 8px; }

/* Data Section & Table */
.data-section {
    width: 100%;
    overflow-x: auto; 
}

table { 
    width: 100%; 
    min-width: 600px; 
    border-collapse: collapse; 
    margin-bottom: 20px; 
    margin-top: 10px;
    border: 1px solid #ddd;
}

th, td { border: 1px solid #ddd; padding: 10px; text-align: left; }
th { background-color: #f2f2f2; }

@media (max-width: 600px) {
    body { padding: 10px; }
    .container { padding: 20px 15px; margin-top: 10px; }
    header h1 { font-size: 1.5rem; }
    .form-section div { flex-direction: column; }
    #logoutBtn { float: none !important; margin-top: 10px !important; width: 100%; }
    .actions { flex-direction: column; }
    .filter-box { width: 100%; flex-direction: column; }
}

/* PDF-ൽ ബോർഡർ മുറിഞ്ഞു പോകാതിരിക്കാൻ */
@media print {
    body { background-color: white; padding: 0; }
    .no-print { display: none !important; }
    .container { box-shadow: none; padding: 0; max-width: 100%; }
    .print-header { display: block !important; margin-bottom: 20px; font-size: 24px;}
    .data-section { overflow-x: hidden; width: 100%; padding-right: 2px; }
    
    table { 
        min-width: 100% !important; 
        width: 99% !important; /* വലതുഭാഗം മുറിയാതിരിക്കാൻ */
        table-layout: fixed; 
        border-collapse: collapse;
        margin: 0 auto;
    }
    th, td { 
        word-wrap: break-word; 
        border: 1px solid #a0a0a0 !important; /* ബോർഡർ കുറച്ചുകൂടി ഡാർക്ക് ആക്കി */
        padding: 8px;
    }
}