/* Basic Modern Styling for Lottery Sambad Results */

.lottery-sambad-results-container {
    font-family: 'Arial', sans-serif;
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #333;
}

.lottery-sambad-date {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: bold;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.lottery-result-section {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 25px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lottery-result-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.lottery-result-section h3 {
    color: #3498db;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
    text-align: center;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 10px;
}

.pdf-preview-wrapper {
    margin-bottom: 20px;
    text-align: center; /* To center the iframe if it's smaller */
}

.lottery-pdf-preview {
    width: 100%;
    max-width: 700px; /* Adjust as needed */
    height: 450px; /* Adjust as needed */
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    display: block; /* Ensures it takes full width within its container */
    margin: 0 auto 15px auto; /* Center the iframe */
}

.lsr-download-button {
    display: inline-block;
    background-color: #2ecc71; /* Green for download */
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.lsr-download-button:hover {
    background-color: #27ae60; /* Darker green on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.lottery-result-section p {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

.preview-note, .error-message {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-top: 10px;
    text-align: center;
    font-style: italic;
}

.error-message {
    color: #c0392b; /* Red for errors */
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lottery-sambad-date {
        font-size: 1.5em;
    }
    .lottery-pdf-preview {
        height: 350px;
    }
    .lsr-download-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .lottery-sambad-results-container {
        padding: 15px;
    }
    .lottery-sambad-date {
        font-size: 1.3em;
    }
    .lottery-result-section {
        padding: 15px;
    }
    .lottery-result-section h3 {
        font-size: 1.3em;
    }
    .lottery-pdf-preview {
        height: 250px;
    }
    .lsr-download-button {
        display: block;
        width: 90%;
        margin: 10px auto;
        text-align: center;
    }
}