/* Church Worship Planner - Frontend Styles */

/* Passcode Form */
.cwp-passcode-form {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cwp-passcode-form h2 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 24px;
    text-align: center;
    font-weight: 600;
}

.cwp-passcode-form .cwp-error {
    color: #e74c3c;
    background: #fee;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #e74c3c;
}

/* Worship Form */
.cwp-worship-form {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cwp-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.cwp-form-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
}

.cwp-logout {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cwp-logout:hover {
    color: #e74c3c;
    border-color: #e74c3c;
    background: #fff5f5;
}

.cwp-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.cwp-message.cwp-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.cwp-message.cwp-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.cwp-form-group {
    margin-bottom: 20px;
}

.cwp-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.cwp-required {
    color: #e74c3c;
    font-weight: bold;
}

.cwp-form-group input[type="text"],
.cwp-form-group input[type="date"],
.cwp-form-group input[type="password"],
.cwp-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.cwp-form-group input[type="text"]:focus,
.cwp-form-group input[type="date"]:focus,
.cwp-form-group input[type="password"]:focus,
.cwp-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.cwp-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.cwp-form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 12px;
    font-style: italic;
}

.cwp-button {
    padding: 12px 30px;
    background: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cwp-button:hover {
    background: #2980b9;
}

.cwp-button-primary {
    background: #27ae60;
    font-size: 18px;
    padding: 14px 40px;
}

.cwp-button-primary:hover {
    background: #229954;
}

/* Sermon Display */
.cwp-sermon-display {
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
    color: #2c3e50;
}

.cwp-sermon-title {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
}

.cwp-scripture-section,
.cwp-ot-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.cwp-ot-section {
    border-left-color: #e67e22;
}

.cwp-scripture-reference,
.cwp-ot-reference {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    font-style: italic;
}

.cwp-scripture-text,
.cwp-ot-text {
    color: #34495e;
    font-size: 16px;
    line-height: 1.9;
    white-space: pre-wrap;
}

.cwp-hymns-section {
    margin: 25px 0;
    padding: 20px;
    background: #fff9e6;
    border-radius: 6px;
}

.cwp-hymns-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.cwp-hymns-list {
    margin: 0;
    padding-left: 25px;
    list-style-type: none;
}

.cwp-hymns-list li {
    padding: 8px 0;
    color: #34495e;
    font-size: 16px;
    position: relative;
}

.cwp-hymns-list li:before {
    content: "♪";
    position: absolute;
    left: -20px;
    color: #f39c12;
    font-size: 18px;
}

.cwp-call-to-worship,
.cwp-prayer {
    margin: 25px 0;
    padding: 20px;
    background: #f0f8ff;
    border-radius: 6px;
    border-left: 4px solid #9b59b6;
}

.cwp-prayer {
    background: #fff5f5;
    border-left-color: #e74c3c;
}

.cwp-call-to-worship h4,
.cwp-prayer h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.cwp-call-text,
.cwp-prayer-text {
    color: #34495e;
    font-size: 16px;
    line-height: 1.9;
    white-space: pre-wrap;
}

/* Announcements Display */
.cwp-announcements-display {
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cwp-announcements-title {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 3px solid #27ae60;
}

.cwp-announcements-content {
    color: #34495e;
    font-size: 16px;
    line-height: 1.9;
    white-space: pre-wrap;
}

/* No Data Message */
.cwp-no-data {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    text-align: center;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cwp-worship-form,
    .cwp-passcode-form,
    .cwp-sermon-display,
    .cwp-announcements-display {
        margin: 20px 15px;
        padding: 20px;
    }
    
    .cwp-form-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cwp-logout {
        margin-top: 10px;
    }
    
    .cwp-sermon-title {
        font-size: 24px;
    }
    
    .cwp-scripture-reference,
    .cwp-ot-reference {
        font-size: 18px;
    }
}
