
/* // modules/underdeacon/underdeacon.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-size: 13px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

header {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-title {
    font-size: 24px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.header-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.tabs-container {
    display: flex;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.tab:hover {
    background-color: #f8f9fa;
}

.tab.active {
    background-color: #e3f2fd;
    border-bottom: 3px solid #3498db;
    color: #2c3e50;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 15px;
}

.section-title {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #3498db;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.chart-container {
    height: 250px;
    position: relative;
    background-color: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.stat-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.stat-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

.welcome-message {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 8px;
    padding: 20px;
    border-left: 5px solid #3498db;
    height: auto;
    align-self: flex-start;
}

.scripture-box {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 12px 0;
    border-radius: 6px;
    font-style: italic;
    font-size: 12px;
}

.tuition-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

.tuition-day {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-top: 4px solid #2ecc71;
    font-size: 12px;
}

.bible-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.bible-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 12px;
}

.bible-link:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

.register-form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: 12px;
}

select, input, textarea {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-success {
    background-color: #2ecc71;
    color: white;
}

.btn-success:hover {
    background-color: #27ae60;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background-color: #d68910;
}

.btn-group {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.table-container {
    overflow-x: auto;
    margin-top: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    max-height: 350px;
    position: relative;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
}

th {
    background-color: #2c3e50;
    color: white;
    padding: 6px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    font-size: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

td {
    padding: 6px;
    border: 1px solid #ddd;
    font-size: 11px;
    text-align: center;
}

tr:hover {
    background-color: #f9f9f9;
}

.attendance-cell {
    min-width: 35px;
    padding: 2px;
}

.table-scroll-controls {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scroll-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-title {
    margin-bottom: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.close-modal {
    float: right;
    font-size: 20px;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #e74c3c;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.week-label {
    background-color: #3498db;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2px;
}

.instructions {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 12px;
}

.instructions h3 {
    color: #ff9800;
    margin-bottom: 8px;
    font-size: 14px;
}

.calendar-container {
    margin: 15px 0;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    padding: 6px;
    text-align: center;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
}

.calendar-day:hover {
    background-color: #e3f2fd;
}

.calendar-day.selected {
    background-color: #3498db;
    color: white;
}

.calendar-day-header {
    padding: 6px;
    text-align: center;
    background-color: #2c3e50;
    color: white;
    font-weight: 600;
    border-radius: 4px;
    font-size: 10px;
}

.evangelistic-plan-container {
    margin-top: 15px;
}

.plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 4px solid #2ecc71;
    cursor: pointer;
}

.plan-item:hover {
    background-color: #e8f4fd;
}

.plan-actions {
    display: flex;
    gap: 8px;
}

.members-list-table {
    min-width: 700px;
}

footer {
    text-align: center;
    margin-top: 25px;
    padding: 15px;
    color: #7f8c8d;
    font-size: 12px;
    border-top: 1px solid #ddd;
}

.current-date-display {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.dual-language {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 12px;
}

.attendance-abbreviations {
    background-color: #f8f9fa;
    padding: 8px;
    border-radius: 6px;
    margin: 8px 0;
    font-size: 11px;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.dashboard-bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.compact-table {
    font-size: 10px;
}

.compact-table th,
.compact-table td {
    padding: 4px;
    font-size: 10px;
    border: 1px solid #ddd;
}

.compact-select {
    padding: 2px;
    font-size: 10px;
    height: 22px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: white;
}

.compact-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.day-header .week-label {
    font-size: 7px;
    padding: 1px 3px;
    margin-bottom: 2px;
}

.day-header .day-name {
    font-size: 8px;
    font-weight: bold;
    margin-bottom: 2px;
}

.day-header .date {
    font-size: 8px;
}

.export-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* Print Selection Modal */
.print-selection-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.print-selection-content {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.print-checkbox-group {
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
}

.print-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.print-checkbox-item:last-child {
    border-bottom: none;
}

.print-checkbox-item label {
    font-weight: normal;
    cursor: pointer;
}

/* Take-Up Form Styles */
.takeup-form-container {
    margin-top: 15px;
}

.takeup-question-group {
    margin-bottom: 12px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.takeup-question {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.takeup-question input[type="checkbox"] {
    transform: scale(1.2);
}

.takeup-question-text {
    font-size: 12px;
    flex: 1;
}

/* Smaller form elements */
.small-form .form-group label {
    font-size: 11px;
}

.small-form select,
.small-form input {
    padding: 6px;
    font-size: 11px;
}

/* Official Attendance Table Styling */
.official-attendance-table {
    border: 2px solid #2c3e50;
}

.official-attendance-table th {
    background-color: #2c3e50;
    color: white;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #ddd;
}

.official-attendance-table td {
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
}

.official-attendance-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.official-attendance-table tr:hover {
    background-color: #e3f2fd;
}

@media (max-width: 1200px) {
    .dashboard-layout,
    .dashboard-bottom-section {
        grid-template-columns: 1fr;
    }
    
    .dual-language {
        grid-template-columns: 1fr;
    }
    
    .tabs-container {
        flex-wrap: wrap;
    }
    
    .tab {
        flex: 1;
        min-width: 130px;
    }
}

@media (max-width: 768px) {
    .dashboard-layout,
    .dashboard-bottom-section {
        grid-template-columns: 1fr;
    }
    
    .tuition-section {
        grid-template-columns: 1fr;
    }
    
    .dual-language {
        grid-template-columns: 1fr;
    }
    
    .tabs-container {
        flex-direction: column;
    }
    
    .tab {
        justify-content: center;
    }
}

@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    header, .tabs-container, footer, .instructions, .btn-group, .table-scroll-controls {
        display: none !important;
    }
    
    .section-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .tab-content {
        display: block !important;
    }
    
    .official-attendance-table {
        font-size: 9px;
        page-break-inside: avoid;
    }
    
    .official-attendance-table th,
    .official-attendance-table td {
        padding: 3px;
        border: 1px solid #000;
    }
}