/* style.css */
/* Styles for the Paani Pala Scheduler application */

/* Basic Reset and Font */
body {
    font-family: 'Noto Sans Devanagari', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* Main container */
.container {
    width: 100%;
    max-width: 800px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* --- UPDATED --- Header Styles */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 20px;
    background-color: #4a90e2;
    color: white;
}

.header-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
}

.header-text {
    text-align: left;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 400;
}

main {
    padding: 20px;
}

/* Card styles */
.current-shift-card, .upcoming-shifts-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

/* Current Shift Specific Styles */
.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #4a90e2;
    object-fit: cover;
    margin-bottom: 15px;
}

.current-shift-card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: #555;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(217, 83, 79, 0.2);
    }
    50% {
        text-shadow: 0 0 20px rgba(217, 83, 79, 0.6);
    }
}

.current-swami-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #d9534f;
    margin: 0 0 15px;
    animation: glow 2.5s infinite ease-in-out;
}


.shift-times p {
    margin: 5px 0;
    font-size: 1rem;
    color: #333;
}

/* Upcoming Shifts Table */
.upcoming-shifts-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #e9ecef;
    font-weight: 700;
}

tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

tbody tr:hover {
    background-color: #e2e6ea;
}

td .swami-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

td .swami-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 25px 0 10px;
}

.pagination .btn {
    background-color: #e9ecef;
    color: #333;
    padding: 8px 20px;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.pagination .btn:hover:not(.disabled) {
    background-color: #d4d9de;
}

.pagination .btn.disabled {
    background-color: #f8f9fa;
    color: #aaa;
    cursor: not-allowed;
    border-color: #e0e0e0;
    pointer-events: none;
}

.pagination .page-info {
    font-size: 1rem;
    font-weight: bold;
    color: #555;
}


/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 15px;
}

.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #333;
}

#modal-body {
    overflow-y: auto;
    text-align: center;
}

#modal-body .modal-profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

#modal-body h4 {
    font-size: 1.5rem;
    margin: 0 0 15px;
}

#modal-body table {
    text-align: left;
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    main {
        padding: 15px;
    }

    header {
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .header-logo {
        width: 40px;
        height: 40px;
    }

    header h1 {
        font-size: 1.2rem;
    }
    header h2 {
        font-size: 1rem;
    }

    th, td {
        padding: 8px 5px;
        font-size: 0.9rem;
    }
    
    .pagination .btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    .pagination .page-info {
        font-size: 0.9rem;
    }
}