* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(135deg, #f5a962 0%, #d4a574 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.choghadiya-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Header */
.choghadiya-header {
    background: linear-gradient(135deg, #f5a962 0%, #d4a574 100%);
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid #d4a574;
}

.choghadiya-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.choghadiya-header p {
    font-size: 14px;
    opacity: 0.95;
}

/* Top Bar */
.choghadiya-top-bar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 20px;
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
}

@media (max-width: 600px) {
    .choghadiya-top-bar {
        grid-template-columns: 1fr;
    }
}

.choghadiya-location-section,
.choghadiya-date-section {
    display: flex;
    flex-direction: column;
}

.choghadiya-location-section label,
.choghadiya-date-section label {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.choghadiya-location-input input,
.choghadiya-date-section input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.choghadiya-location-input input:focus,
.choghadiya-date-section input:focus {
    outline: none;
    border-color: #f5a962;
    box-shadow: 0 0 0 4px rgba(245, 169, 98, 0.1);
    background: #fffbf7;
}

.choghadiya-autocomplete {
    position: relative;
    width: 100%;
}

.choghadiya-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #f5a962;
    border-top: none;
    list-style: none;
    margin-top: -2px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-radius: 0 0 6px 6px;
}

.choghadiya-suggestion-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: all 0.2s;
    font-weight: 500;
}

.choghadiya-suggestion-item:hover {
    background: linear-gradient(90deg, #f5a962, #f0a050);
    color: white;
    font-weight: 600;
}

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

/* Date Info Section */
.choghadiya-date-info {
    background: linear-gradient(90deg, #fff9f5 0%, #fffcf9 100%);
    padding: 20px;
    border-bottom: 2px solid #f0e0d0;
}

.choghadiya-date-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.choghadiya-date-nav button {
    padding: 10px 18px;
    background: linear-gradient(135deg, #f5a962, #f09050);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(245, 169, 98, 0.3);
}

.choghadiya-date-nav button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(245, 169, 98, 0.4);
    background: linear-gradient(135deg, #f09050, #e88040);
}

#date-display {
    font-weight: 700;
    color: #d4a574;
    font-size: 14px;
    text-align: center;
    flex: 1;
    background: white;
    padding: 10px 15px;
    border-radius: 6px;
    border: 2px solid #f5a962;
}

.choghadiya-sunrise-sunset {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding-top: 15px;
    border-top: 2px solid #f5a962;
}

.choghadiya-sunrise-sunset span {
    font-size: 13px;
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.choghadiya-sunrise-sunset strong {
    color: #d4a574;
    font-weight: 700;
    font-size: 15px;
}

/* Main Content */
.choghadiya-main-content {
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 900px) {
    .choghadiya-main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.choghadiya-periods-section h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #f5a962, #d4a574);
    padding: 12px 15px;
    border-radius: 6px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.choghadiya-periods-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choghadiya-period-box {
    border-radius: 8px;
    padding: 15px 16px;
    color: white;
    display: flex;
    align-items: center;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-height: 65px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid rgba(255,255,255,0.3);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.choghadiya-period-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.choghadiya-period-box:hover {
    transform: translateX(6px) translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.choghadiya-period-box:hover::before {
    left: 100%;
}

.choghadiya-period-content {
    width: 100%;
    position: relative;
    z-index: 1;
}

.choghadiya-period-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.choghadiya-icon {
    font-size: 18px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.2));
}

.choghadiya-period-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.choghadiya-period-time {
    font-size: 12px;
    opacity: 0.95;
    font-weight: 500;
    margin-left: 28px;
}

/* Color Schemes */
.choghadiya-period-box {
    border-left-color: rgba(255,255,255,0.4);
}

/* Good (Green) */
.choghadiya-period-box[style*="rgb(124, 179, 66)"],
.choghadiya-period-box[style*="#7CB342"] {
    background: linear-gradient(135deg, #7CB342 0%, #6BA03C 100%);
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.25);
}

.choghadiya-period-box[style*="#7CB342"]:hover {
    box-shadow: 0 8px 20px rgba(124, 179, 66, 0.35);
}

/* Neutral (Brown) */
.choghadiya-period-box[style*="rgb(121, 85, 72)"],
.choghadiya-period-box[style*="#795548"] {
    background: linear-gradient(135deg, #795548 0%, #6A4C42 100%);
    box-shadow: 0 4px 12px rgba(121, 85, 72, 0.25);
}

.choghadiya-period-box[style*="#795548"]:hover {
    box-shadow: 0 8px 20px rgba(121, 85, 72, 0.35);
}

/* Bad (Red) */
.choghadiya-period-box[style*="rgb(211, 47, 47)"],
.choghadiya-period-box[style*="#D32F2F"] {
    background: linear-gradient(135deg, #D32F2F 0%, #C62828 100%);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.25);
}

.choghadiya-period-box[style*="#D32F2F"]:hover {
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.35);
}

/* Worst (Dark Red) */
.choghadiya-period-box[style*="rgb(183, 28, 28)"],
.choghadiya-period-box[style*="#B71C1C"] {
    background: linear-gradient(135deg, #B71C1C 0%, #A01414 100%);
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.25);
}

.choghadiya-period-box[style*="#B71C1C"]:hover {
    box-shadow: 0 8px 20px rgba(183, 28, 28, 0.35);
}

/* Footer Note */
.choghadiya-footer {
    background: #f5f5f5;
    padding: 15px 20px;
    text-align: center;
    color: #666;
    font-size: 12px;
    border-top: 2px solid #e0e0e0;
    line-height: 1.5;
}