/* Islamic Date Converter Plugin Styles */

.idc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.idc-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.idc-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 10px 0;
}

.idc-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
}

.idc-converter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.idc-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.idc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.idc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.idc-card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.idc-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.idc-green {
    background-color: #0d9488;
}

.idc-gold {
    background-color: #d97706;
}

.idc-form-group {
    margin-bottom: 25px;
}

.idc-form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 15px;
    font-size: 1rem;
}

.idc-date-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.idc-input-group label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.idc-select,
.idc-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.idc-select:focus,
.idc-input:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.idc-btn {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-bottom: 20px;
}

.idc-btn:hover {
    transform: translateY(-1px);
}

.idc-btn-green {
    background-color: #0d9488;
}

.idc-btn-green:hover {
    background-color: #0f766e;
}

.idc-btn-gold {
    background-color: #d97706;
}

.idc-btn-gold:hover {
    background-color: #b45309;
}

.idc-result {
    border-radius: 12px;
    padding: 20px;
    border: 2px solid;
    margin-top: 15px;
}

.idc-result-green {
    background-color: #f0fdfa;
    border-color: #5eead4;
}

.idc-result-gold {
    background-color: #fffbeb;
    border-color: #fcd34d;
}

.idc-result-content {
    text-align: center;
}

.idc-result-date {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.idc-result-green .idc-result-date {
    color: #0f766e;
}

.idc-result-gold .idc-result-date {
    color: #b45309;
}

.idc-result-day {
    font-size: 0.9rem;
}

.idc-result-green .idc-result-day {
    color: #14b8a6;
}

.idc-result-gold .idc-result-day {
    color: #d97706;
}

.idc-months-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.idc-months-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 25px;
}

.idc-months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.idc-month-card {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 1px solid #5eead4;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.idc-month-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.2);
}

.idc-month-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f766e;
    margin-bottom: 8px;
}

.idc-month-arabic {
    font-size: 0.95rem;
    color: #14b8a6;
    margin-bottom: 10px;
    font-family: 'Arial Unicode MS', Arial, sans-serif;
}

.idc-month-number {
    font-size: 0.8rem;
    color: #0f766e;
    background: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .idc-container {
        padding: 15px;
    }
    
    .idc-title {
        font-size: 2rem;
    }
    
    .idc-converter-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .idc-date-inputs {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .idc-months-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .idc-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .idc-title {
        font-size: 1.5rem;
    }
    
    .idc-subtitle {
        font-size: 1rem;
    }
    
    .idc-months-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading Animation */
.idc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0d9488;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.idc-error {
    background-color: #fef2f2;
    border: 2px solid #fca5a5;
    color: #dc2626;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    text-align: center;
}