/* Hindu Panchang Widget Styles */

.hindu-panchang-widget {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hindu-panchang-widget h3,
.hindu-panchang-widget h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 8px;
}

/* Date Picker Styles */
.panchang-date-picker {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.panchang-date-picker label {
    font-weight: bold;
    color: #555;
    margin-right: 5px;
}

.panchang-date-picker input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.panchang-date-picker button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.panchang-date-picker button:hover {
    background: #e55a2b;
}

/* Date Header */
.panchang-date-header {
    text-align: center;
    margin-bottom: 20px;
}

.panchang-date-header h4 {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 12px;
    border-radius: 6px;
    margin: 0;
    font-size: 16px;
    border-bottom: none;
}

/* Panchang Data Container */
.panchang-data-container {
    display: grid;
    gap: 8px;
}

/* Individual Panchang Items */
.panchang-item {
    display: flex;
    align-items: flex-start;
    /* padding: 12px;
    background: #fafafa;
    border-left: 4px solid #ff6b35;
    border-radius: 4px;
    transition: background-color 0.3s; */
}

/* .panchang-item:hover {
    background: #f0f0f0;
} */



.panchang-item.sun-times .panchang-label {
    display: none;
}

.panchang-item.sun-times .panchang-value {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.panchang-label {
    font-weight: bold;
    color: #333;
    min-width: 120px;
    margin-right: 10px;
    font-size: 14px;
}

.panchang-value {
    flex: 1;
    color: #555;
    font-size: 14px;
    /*line-height: 1.4;*/
}

/* Multiple Values List */
.panchang-multiple-values {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.panchang-multiple-values li {
    margin-bottom: 4px;
}

/* No Data Message */
.no-data {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
}

/* Shortcode Specific Styles */
.hindu-panchang-shortcode {
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hindu-panchang-widget {
        padding: 20px;
        margin-bottom: 15px;
        border-radius: 6px;
    }
    
    .panchang-date-header h4 {
        font-size: 18px;
        padding: 8px;
    }
    
    .panchang-data-container {
        gap: 6px;
    }
    
    .panchang-item {
        flex-direction: row;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }
    
    .panchang-label {
        min-width: 90px;
        margin-right: 8px;
        font-size: 14px;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .panchang-value {
        font-size: 14px;
        flex: 1;
        text-align: right;
    }
    
    /* Special mobile styling for sun times */
    .panchang-item.sun-times {
        padding: 10px;
        border-radius: 6px;
        border-bottom: none;
        margin-bottom: 8px;
    }
    
    .panchang-item.sun-times .panchang-value {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
        font-weight: 600;
    }
    
    .panchang-item.sun-times .sunrise-time,
    .panchang-item.sun-times .sunset-time {
        color: #d68910;
    }
    
    .panchang-date-picker {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 12px;
        gap: 8px;
    }
    
    .panchang-date-picker label {
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 14px;
    }
    
    .panchang-date-picker input[type="date"] {
        font-size: 16px;
        padding: 10px;
    }
    
    .panchang-date-picker button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* Multiple values styling for mobile */
    .panchang-multiple-values {
        padding-left: 15px;
        font-size: 12px;
    }
    
    .panchang-multiple-values li {
        margin-bottom: 2px;
    }
}

/* Widget Admin Styles */
.widget .hindu-panchang-admin {
    margin-top: 10px;
}

.widget .hindu-panchang-admin small {
    color: #666;
    font-style: italic;
}

/* Special Element Type Styling */
.panchang-item[data-type="Sunrise"],
.panchang-item[data-type="Sunset"] {
    border-left-color: #f39c12;
}

.panchang-item[data-type="Tithulu"],
.panchang-item[data-type="Pakshamulu"] {
    border-left-color: #9b59b6;
}

.panchang-item[data-type="Nakshatramulu"] {
    border-left-color: #3498db;
}

.panchang-item[data-type="Rahu Kalam"],
.panchang-item[data-type="Yamaganda"] {
    border-left-color: #e74c3c;
}

.panchang-item[data-type="Amrit Kalam"] {
    border-left-color: #27ae60;
}

/* Loading Animation */
.panchang-loading {
    text-align: center;
    padding: 20px;
}

.panchang-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ff6b35;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Print Styles */
@media print {
    .panchang-date-picker {
        display: none;
    }
    
    .hindu-panchang-widget {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .panchang-date-header h4 {
        background: none;
        color: #000;
        border-bottom: 2px solid #000;
    }
    
    .panchang-item {
        border-left-color: #000;
        background: none;
    }
}
