@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-color: #6a5acd; /* Slate Blue */
    --secondary-color: #f0e6ff; /* Lavender */
    --background-color: #121212; /* Dark background */
    --surface-color: #1e1e1e; /* Slightly lighter surface */
    --text-color: #e0e0e0; /* Light grey text */
    --header-color: #ffffff; /* White for headers */
    --border-color: #333;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
}

h1, h2 {
    color: var(--header-color);
    text-align: center;
    font-weight: 600;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

form {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 3rem;
}

textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: #2a2a2a;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(106, 90, 205, 0.5);
}

input[type="submit"] {
    background: linear-gradient(45deg, var(--primary-color), #836FFF);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 90, 205, 0.4);
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    background: var(--surface-color);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.summary {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.summary p {
    margin: 0;
    font-style: italic;
    color: var(--secondary-color);
    text-align: center;
    font-size: 1.1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.summary, li {
    animation: fadeIn 0.5s ease-out forwards;
}

.renewal-info {
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--secondary-color);
}

.slot-form {
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: #2a2a2a;
    color: var(--text-color);
    font-size: 1rem;
}

.slot-list {
    padding: 0;
}

.slot-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slot-time {
    font-weight: 600;
    color: var(--primary-color);
}

.nav-link {
    display: block;
    text-align: center;
    margin-top: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--secondary-color);
}

/* Tab Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.nav-tab {
    padding: 1rem 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: color 0.3s, border-bottom-color 0.3s;
}

.nav-tab:hover {
    color: var(--primary-color);
}

.nav-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Admin & Login Styles */
.login-form {
    max-width: 400px;
    margin: 5rem auto;
}

.error {
    color: #ff4d4d;
    background-color: rgba(255, 77, 77, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.logout-link {
    display: block;
    text-align: right;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.admin-section {
    margin-bottom: 3rem;
}

.admin-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delete-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.delete-btn:hover {
    background-color: #cc0000;
}

/* Calendar Pop-up Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    max-width: 400px;
    animation: fadeIn 0.3s ease-out;
}

.popup-content h2 {
    margin-top: 0;
    color: var(--primary-color);
}

.popup-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 0.5rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.popup-btn:hover {
    transform: translateY(-2px);
}

.calendar-btn {
    background: linear-gradient(45deg, var(--primary-color), #836FFF);
    color: white;
}

.skip-btn {
    background-color: #444;
    color: var(--text-color);
}

.verse-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}
