/*!
 * Elderly-Friendly CSS for Malaysian Mosque Management
 * "Mesra Pakcik-Pakcik" Mode
 * Optimized for users 50+ years old
 */

/* ==== FONT IMPROVEMENTS ==== */
body {
    font-size: 18px !important;
    font-family: "Arial", "Tahoma", sans-serif !important;
    line-height: 1.6 !important;
}

/* Larger text for all form elements */
.form-control,
.form-select,
.selectize-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    font-size: 18px !important;
    padding: 12px 16px !important;
    min-height: 48px !important;
}

/* Larger labels */
.form-label,
label {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

/* ==== BUTTON IMPROVEMENTS ==== */
.btn {
    min-height: 48px !important;
    font-size: 16px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
}

.btn-lg {
    min-height: 56px !important;
    font-size: 18px !important;
    padding: 16px 24px !important;
}

.btn-sm {
    min-height: 40px !important;
    font-size: 14px !important;
    padding: 10px 16px !important;
}

/* ==== NAVIGATION IMPROVEMENTS ==== */
.navbar-nav .nav-link {
    font-size: 16px !important;
    padding: 12px 16px !important;
}

/* Mobile bottom navigation */
.fixed-bottom .col {
    padding: 12px 8px !important;
}

.fixed-bottom a {
    font-size: 14px !important;
    padding: 8px 4px !important;
}

.fixed-bottom i {
    font-size: 24px !important;
    margin-bottom: 4px !important;
}

/* ==== TABLE IMPROVEMENTS ==== */
.table {
    font-size: 16px !important;
}

.table th,
.table td {
    padding: 12px 16px !important;
    vertical-align: middle !important;
}

/* ==== CARD IMPROVEMENTS ==== */
.card-title {
    font-size: 20px !important;
    font-weight: 600 !important;
}

.card-body {
    padding: 20px !important;
}

/* ==== PAGE HEADER IMPROVEMENTS ==== */
.page-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
}

.page-subtitle {
    font-size: 16px !important;
    color: #6c757d !important;
}

/* ==== CURRENCY DISPLAY ==== */
.currency-amount {
    font-family: "Arial", monospace !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.currency-large {
    font-size: 24px !important;
    font-weight: 700 !important;
}

/* ==== HIGH CONTRAST MODE ==== */
.high-contrast {
    background: #ffffff !important;
    color: #000000 !important;
}

.high-contrast .btn-primary {
    background-color: #0066cc !important;
    border-color: #0066cc !important;
    color: #ffffff !important;
}

.high-contrast .btn-success {
    background-color: #006600 !important;
    border-color: #006600 !important;
    color: #ffffff !important;
}

.high-contrast .btn-danger {
    background-color: #cc0000 !important;
    border-color: #cc0000 !important;
    color: #ffffff !important;
}

/* ==== ACCESSIBILITY IMPROVEMENTS ==== */
.focus-indicator:focus {
    outline: 3px solid #007bff !important;
    outline-offset: 2px !important;
}

/* Larger touch targets for mobile */
@media (max-width: 768px) {
    .btn {
        min-height: 52px !important;
        font-size: 18px !important;
    }
    
    .form-control {
        font-size: 20px !important;
        min-height: 52px !important;
    }
    
    .table th,
    .table td {
        font-size: 16px !important;
        padding: 16px 12px !important;
    }
}

/* ==== MALAYSIAN CURRENCY STYLING ==== */
.rm-currency::before {
    content: "RM ";
    font-weight: 600;
    color: #28a745;
}

.rm-large::before {
    content: "RM ";
    font-size: 1.2em;
    font-weight: 700;
    color: #28a745;
}

/* ==== ISLAMIC DATE STYLING ==== */
.islamic-date {
    font-size: 14px !important;
    color: #6c757d !important;
    font-style: italic;
    margin-top: 4px;
}

/* ==== SENIOR MODE TOGGLE ==== */
.senior-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 15px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Senior mode activated */
.senior-mode body {
    font-size: 20px !important;
}

.senior-mode .btn {
    min-height: 56px !important;
    font-size: 18px !important;
}

.senior-mode .form-control {
    font-size: 20px !important;
    min-height: 56px !important;
}

.senior-mode .page-title {
    font-size: 28px !important;
}
