/* Main Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px;
}

/* Banner */
.banner {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Progress Bar */
.progress-section {
    margin: 20px auto;
    max-width: 600px;
    padding: 0 20px;
}

.progress-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.progress {
    background-color: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
}

.progress-bar {
    position: relative;
    transition: width 0.5s ease-in-out;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-percentage {
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.progress-details {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.progress-details h5 {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.progress-details p {
    font-weight: bold;
    color: #495057;
    margin-bottom: 0;
}

.progress-container.error {
    border: 1px solid #dc3545;
}

.progress-container.success .progress-bar {
    background-color: #28a745;
}

#donorCount {
    color: #6c757d;
    font-size: 0.9rem;
}

#donorCount.updated {
    animation: highlight 1s ease-in-out;
}

@keyframes highlight {
    0% { color: #6c757d; }
    50% { color: #28a745; }
    100% { color: #6c757d; }
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #45a049;
}

.btn-secondary {
    padding: 8px 15px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Modal */
.modal {
    z-index: 1055;
}

.modal-backdrop {
    z-index: 1050;
}

.modal-dialog {
    margin: 1.75rem auto;
}

.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

small {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

/* Description */
.description-container .card {
    background: white;
    transition: all 0.3s ease;
}

.description-container .card:hover {
    transform: translateY(-2px);
}

.description-container .card-title {
    color: #2c3e50;
    font-weight: 600;
}

.description-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.description-text {
    margin: 0;
    line-height: 1.6;
    white-space: pre-line;
    word-wrap: break-word;
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

.read-more-btn {
    color: #4CAF50;
    background: none;
    border: none;
    padding: 5px 0;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    display: block;
    margin: 10px auto 0;
}

.read-more-btn:hover {
    color: #45a049;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .progress-details {
        padding: 10px;
    }
    
    .btn-primary {
        padding: 12px;
        font-size: 14px;
    }
}

/* Fixed Donation Button */
.fixed-donation-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 220px;
    max-width: 80%;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 30px;
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    text-align: center;
    animation: pulse 2s infinite;
}

.fixed-donation-btn:hover {
    background: #45a049;
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Prayers Container */
.prayers-container .card {
    background: white;
    transition: all 0.3s ease;
}

.prayers-wrapper {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.prayers-wrapper::-webkit-scrollbar {
    width: 6px;
}

.prayers-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.prayers-wrapper::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 10px;
}

.prayers-wrapper::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}

.prayer-list {
    transition: all 0.3s ease;
}

.prayer-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s ease;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.prayer-item:last-child {
    border-bottom: none;
}

.prayer-item:hover {
    background-color: #f9f9f9;
}

.prayer-name {
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 5px;
    font-size: 14px;
}

.prayer-text {
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 0;
    white-space: pre-line;
    word-wrap: break-word;
}

.prayer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.prayer-time {
    font-size: 11px;
    color: #999;
    font-style: italic;
}

.btn-outline-success {
    color: #4CAF50;
    border-color: #4CAF50;
    font-size: 13px;
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.btn-outline-success:hover {
    background-color: #4CAF50;
    color: white;
}

/* Update indicator */
.prayers-updated-indicator {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
    animation: slideDown 0.5s ease;
    position: relative;
    top: 0;
    opacity: 1;
    transition: opacity 0.5s ease, top 0.5s ease;
}

.prayers-updated-indicator.fade-out {
    opacity: 0;
    top: -10px;
}

@keyframes slideDown {
    from { top: -10px; opacity: 0; }
    to { top: 0; opacity: 1; }
} 