/* General body and container styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}

/* Typography and headings */
h1 {
    color: #4a90e2;
    text-align: center;
    font-weight: 600;
    font-size: 2.2em;
    margin-bottom: 0.5em;
}

p.subtitle {
    text-align: center;
    color: #666;
    margin-top: 0;
    margin-bottom: 2em;
}

h2 {
    color: #555;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-top: 2em;
    margin-bottom: 1.5em;
    font-size: 1.5em;
}

/* Forms and inputs */
form > div {
    margin-bottom: 1em;
}

label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 500;
    color: #444;
}

input[type="email"],
input[type="time"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input[type="email"]:focus,
input[type="time"]:focus,
textarea:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

textarea {
    resize: vertical;
}

/* Buttons */
button,
.pray-btn {
    background-color: #4a90e2;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: auto;
}

button:hover,
.pray-btn:hover {
    background-color: #3b73b5;
    transform: translateY(-2px);
}

button:disabled,
.pray-btn:disabled {
    background-color: #a0c4e8;
    cursor: not-allowed;
    transform: none;
}

/* Prayer cards and lists */
.prayer-card,
#latest-prayer-container > div {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.prayer-card p,
#latest-prayer-container p {
    margin: 0 0 10px 0;
}

.pray-for-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.pray-count {
    color: #666;
    font-style: italic;
}

.pray-count-number {
    font-weight: bold;
    color: #4a90e2;
}

.pray-btn span {
    margin-right: 5px;
}

/* Links */
.link-text {
    color: #4a90e2;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

.link-text:hover {
    color: #3b73b5;
    text-decoration: underline;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.modal-content h3 {
    color: #4a90e2;
    font-size: 1.8em;
    margin-top: 0;
}

.modal-content p {
    margin-bottom: 20px;
}
