/* Pancha Pakshi Plugin Styles */

.pancha-pakshi-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 900px;
    margin: 20px auto;
    padding: 30px;
    border: 2px solid #e8d4a8;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #fff9f0 0%, #fffbf5 100%);
}

.pancha-pakshi-container h2 {
    text-align: center;
    color: #8b4513;
    font-size: 28px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Form Styling */
#pancha-pakshi-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    position: relative; /* Added for autocomplete positioning */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="time"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="time"]:focus {
    outline: none;
    border-color: #8b4513;
    box-shadow: 0 0 5px rgba(139, 69, 19, 0.2);
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.form-group label[for="auto_location"] {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
}

/* Button Styling */
.btn-calculate {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
}

.btn-calculate:hover {
    background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
    box-shadow: 0 6px 12px rgba(139, 69, 19, 0.4);
    transform: translateY(-2px);
}

.btn-calculate:active {
    transform: translateY(0);
}

/* Loading Spinner */
.spinner {
    text-align: center;
    padding: 20px;
}

.spinner::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8b4513;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Results Section */
.results-section {
    margin-bottom: 30px;
}

.result-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #8b4513;
}

.result-card h3 {
    color: #8b4513;
    margin-bottom: 20px;
    font-size: 20px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
}

.result-table tr {
    border-bottom: 1px solid #eee;
}

.result-table tr:last-child {
    border-bottom: none;
}

.result-table td {
    padding: 12px 0;
}

.result-table .label {
    font-weight: 600;
    color: #555;
    width: 40%;
}

.result-table .value {
    color: #333;
}

.result-table .value.highlight {
    color: #8b4513;
    font-weight: 600;
    font-size: 16px;
}

.result-table .value.pakshi-vulture {
    background: linear-gradient(90deg, #fff0f5, #ffe4e1);
    padding: 8px 12px;
    border-radius: 4px;
}

.result-table .value.pakshi-owl {
    background: linear-gradient(90deg, #f0f8ff, #e6f2ff);
    padding: 8px 12px;
    border-radius: 4px;
}

.result-table .value.pakshi-crow {
    background: linear-gradient(90deg, #f5f5f5, #e8e8e8);
    padding: 8px 12px;
    border-radius: 4px;
}

.result-table .value.pakshi-cock {
    background: linear-gradient(90deg, #fff8dc, #ffe4b5);
    padding: 8px 12px;
    border-radius: 4px;
}

.result-table .value.pakshi-peacock {
    background: linear-gradient(90deg, #f0fff0, #e0ffe0);
    padding: 8px 12px;
    border-radius: 4px;
}

/* Daily Table Section */
.table-section {
    margin-bottom: 30px;
}

.daily-table-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #d4a574;
}

.daily-table-card h3 {
    color: #8b4513;
    margin-bottom: 15px;
    font-size: 20px;
}

.info-text {
    color: #666;
    font-size: 13px;
    margin: 15px 0 10px 0;
    font-style: italic;
}

.daily-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    overflow-x: auto;
}

.daily-table thead {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: white;
}

.daily-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

.daily-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.daily-table tbody tr:hover {
    background-color: #f9f9f9;
}

.daily-table tbody tr:nth-child(odd) {
    background-color: #fafafa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pancha-pakshi-container {
        padding: 20px;
        margin: 10px;
    }

    .pancha-pakshi-container h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    #pancha-pakshi-form {
        padding: 15px;
    }

    .result-table .label {
        width: 50%;
    }

    .daily-table {
        font-size: 12px;
    }

    .daily-table th,
    .daily-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .pancha-pakshi-container {
        padding: 15px;
        border-radius: 8px;
    }

    .pancha-pakshi-container h2 {
        font-size: 18px;
    }

    .result-table .label {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }

    .result-table .value {
        display: block;
        margin-bottom: 15px;
    }

    .daily-table {
        font-size: 11px;
    }

    .daily-table th,
    .daily-table td {
        padding: 6px;
    }
}

/* Autocomplete Suggestions Styling */
.autocomplete-suggestions {
    border: 1px solid #ddd;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    background-color: #fff;
    width: calc(100% - 2px); /* Adjust width to match input field */
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
    left: 0;
    right: 0;
    top: 100%; /* Position below the input */
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}
