* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Noto Sans Devanagari', Tahoma, sans-serif;
}

body {
    background: linear-gradient(135deg, #ff9933 0%, #ffffff 50%, #138808 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 850px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    background: #fff;
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    margin-bottom: 25px;
    border-top: 6px solid #ff9933;
    border-bottom: 6px solid #138808;
}

.emblem {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.header h1 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 5px;
    font-weight: 800;
}

.header h2 {
    font-size: 1.4rem;
    color: #d97706;
    margin-bottom: 10px;
    font-weight: 700;
}

.header .location {
    font-size: 1rem;
    color: #444;
    font-weight: 600;
    margin-bottom: 12px;
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff9933, #138808, transparent);
    margin: 15px auto;
    max-width: 300px;
}

.header .subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-top: 10px;
}

/* ===== SEARCH BOX ===== */
.search-box {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-bottom: 10px;
}

#searchInput {
    flex: 1;
    padding: 14px 18px;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
}

#searchInput:focus {
    border-color: #ff9933;
    box-shadow: 0 0 0 3px rgba(255,153,51,0.2);
}

#searchBtn {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff9933, #d97706);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

#searchBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255,153,51,0.5);
}

/* ===== SUGGESTIONS ===== */
.suggestions {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.suggestions:empty {
    display: none;
}

.suggestion-item {
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: 0.2s;
    border-left: 4px solid transparent;
}

.suggestion-item:hover {
    background: #fff8f0;
    padding-left: 25px;
    border-left-color: #ff9933;
}

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

.suggestion-item .name-hi {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.05rem;
}

.suggestion-item .name-en {
    color: #777;
    font-size: 0.9rem;
    margin-top: 2px;
}

.suggestion-item .epic {
    color: #d97706;
    font-size: 0.85rem;
    margin-top: 4px;
    font-weight: 600;
}

/* ===== RESULT AREA ===== */
.result-area {
    margin-top: 20px;
}

/* ===== SLIP CARD ===== */
.slip-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slip-header {
    background: linear-gradient(135deg, #ff9933, #d97706);
    color: #fff;
    padding: 18px 20px;
    text-align: center;
    border-bottom: 4px solid #138808;
}

.slip-header h2 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.slip-header p {
    font-size: 0.82rem;
    opacity: 0.95;
}

.slip-body {
    padding: 22px;
}

.slip-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.slip-row:last-child {
    border-bottom: none;
}

.slip-label {
    width: 40%;
    font-weight: 700;
    color: #555;
    font-size: 0.95rem;
}

.slip-value {
    width: 60%;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 0.95rem;
}

.slip-value .hindi {
    display: block;
    font-weight: 700;
}

.slip-value .english {
    display: block;
    color: #888;
    font-size: 0.85rem;
    font-weight: 400;
    margin-top: 2px;
}

.slip-actions {
    display: flex;
    gap: 10px;
    padding: 0 22px 22px;
}

.btn {
    flex: 1;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-print {
    background: linear-gradient(135deg, #138808, #0f6b06);
    color: #fff;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ===== NO RESULT ===== */
.no-result {
    background: #fff;
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    color: #777;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.no-result .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.no-result h3 {
    color: #333;
    margin-bottom: 8px;
}

/* ===== PRINT AREA ===== */
.print-area {
    display: none;
}

/* ========== PRINT STYLES ========== */
@media print {
    @page {
        size: A4;
        margin: 8mm;
    }
    
    body {
        background: #fff !important;
        padding: 0;
    }
    
    .container,
    .header,
    .search-box,
    .suggestions,
    .result-area {
        display: none !important;
    }
    
    .print-area {
        display: block !important;
    }
    
    .print-slip {
        width: 100%;
        padding: 15px;
        border: 2px solid #000;
        margin: 0 auto;
    }
    
    .print-header {
        text-align: center;
        border-bottom: 2px solid #000;
        padding-bottom: 8px;
        margin-bottom: 10px;
    }
    
    .print-header .line1 {
        font-size: 18px;
        font-weight: bold;
    }
    
    .print-header .line2 {
        font-size: 15px;
        font-weight: bold;
        margin-top: 3px;
    }
    
    .print-header .line3 {
        font-size: 12px;
        margin-top: 3px;
    }
    
    .print-header .line4 {
        font-size: 13px;
        font-weight: bold;
        margin-top: 6px;
        padding-top: 5px;
        border-top: 1px dashed #000;
    }
    
    .print-slip .row {
        display: flex;
        padding: 5px 0;
        border-bottom: 1px dotted #999;
        font-size: 13px;
    }
    
    .print-slip .label {
        width: 35%;
        font-weight: bold;
    }
    
    .print-slip .value {
        width: 65%;
    }
    
    .print-slip .signature {
        margin-top: 25px;
        display: flex;
        justify-content: space-between;
        font-size: 12px;
    }
    
    .print-slip .footer-note {
        margin-top: 15px;
        text-align: center;
        font-size: 11px;
        border-top: 1px dashed #000;
        padding-top: 6px;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .header h2 {
        font-size: 1.1rem;
    }
    
    .header .location {
        font-size: 0.85rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    #searchBtn {
        width: 100%;
    }
    
    .slip-label {
        width: 45%;
        font-size: 0.85rem;
    }
    
    .slip-value {
        width: 55%;
        font-size: 0.85rem;
    }
    
    .slip-actions {
        flex-direction: column;
    }
}