/* General container styling */
.sassa-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #0d0d0d !important; /* Very dark background */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important; /* Stronger shadow */
    border-radius: 8px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    color: #f0f0f0 !important; /* Very light text color */
    border: 1px solid #1a1a1a !important; /* Subtle border */
}

/* Header styles with a very dark gradient */
.sassa-header {
    background: linear-gradient(45deg, #000000, #1a1a1a); /* Almost black gradient */
    text-align: center;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    color: #ffffff; /* Pure white text for header */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.sassa-header h1 {
    font-size: 24px;
    margin: 0;
    font-weight: bold;
}

.sassa-header p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #cccccc; /* Slightly dimmed for subtitle */
}

/* Form styling with very dark inputs */
.sassa-form {
    margin: 20px 0;
}

.sassa__label {
    font-weight: bold;
    color: #d0d0d0; /* Light grey for labels */
    display: block;
    margin-bottom: 8px;
}

.sassa__input {
    width: 100%;
    padding: 12px;
    border: 1px solid #2a2a2a !important; /* Very dark border */
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    background-color: #1a1a1a !important; /* Very dark input background */
    color: #f0f0f0 !important; /* Light text in inputs */
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.sassa__input:focus {
    border-color: #404040; /* Lighter border on focus */
    outline: none;
    background-color: #0d0d0d; /* Even darker background on focus */
    box-shadow: 0 0 5px rgba(64, 64, 64, 0.5);
}

.sassa__input::placeholder {
    color: #888888; /* Placeholder text color */
}

/* Button with very dark tones */
.sassa__button {
    display: block;
    margin: 20px auto;
    padding: 12px;
    width: 200px;
    background-color: #2a2a2a; /* Very dark button background */
    border: 1px solid #404040; /* Subtle border */
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff; /* White text on button */
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.sassa__button:hover {
    background-color: #404040; /* Lighter on hover */
    border-color: #555555;
    transform: scale(1.05);
}

.sassa__button:active {
    background-color: #1a1a1a; /* Darker on active */
    border-color: #333333;
}

/* Loader styles */
.sassa-loader {
    text-align: center;
    padding: 20px;
    display: none;
}

.sassa-loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #1a1a1a; /* Very dark spinner border */
    border-top: 4px solid #666666; /* Lighter top border for spin effect */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Results section */
.sassa-status-result {
    display: none;
    padding: 20px;
    background-color: #0d0d0d; /* Very dark background for results */
    border: 1px solid #2a2a2a; /* Subtle border */
    border-radius: 4px;
    margin-top: 20px;
    color: #f0f0f0; /* Light text for results */
}

.application-details-container {
    background-color: #1a1a1a; /* Very dark background for details container */
    border: 1px solid #333333; /* Subtle border */
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.application-month-container {
    border-radius: 4px;
    margin: 10px 0;
    padding: 10px;
    color: #ffffff; /* White text for status containers */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Very subtle border */
}

.application-month-container.approved {
    background-color: #1a5a1a; /* Very dark green */
    border-color: #2a7a2a;
}

.application-month-container.pending {
    background-color: #5a5a1a; /* Very dark yellow/olive */
    border-color: #7a7a2a;
    color: #ffffff; /* Ensure white text */
}

.application-month-container.declined {
    background-color: #5a1a1a; /* Very dark red */
    border-color: #7a2a2a;
}

.sassa__status-info {
    font-weight: bold;
    margin: 10px 0;
    text-align: center;
    color: #f0f0f0; /* Light text */
}

/* Footer styles */
.sassa-footer {
    text-align: center;
    padding: 15px;
    background-color: #000000; /* Pure black footer background */
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    color: #aaaaaa; /* Light grey text for footer */
    border-top: 1px solid #1a1a1a; /* Very subtle top border */
}

.sassa-footer a {
    color: #888888; /* Grey link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.sassa-footer a:hover {
    color: #cccccc; /* Lighter on hover */
    text-decoration: underline;
}

/* Error messages */
.sassa__alert {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sassa__message--error {
    background-color: #5a1a1a; /* Very dark red for error messages */
    border-color: #7a2a2a;
    color: #ffffff;
}

/* Additional utility classes for better integration with black backgrounds */
.sassa-text-light {
    color: #f0f0f0;
}

.sassa-text-muted {
    color: #aaaaaa;
}

.sassa-bg-darker {
    background-color: #0d0d0d;
}

/* Ensure proper contrast on very dark backgrounds */
@media (prefers-color-scheme: dark) {
    .sassa-container {
        background-color: #000000; /* Pure black for dark mode preference */
        border-color: #2a2a2a;
    }
}