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

:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4cc9f0;
    --warning: #f9c74f;
    --danger: #f94144;
    --gray: #6c757d;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark);
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 85vh;
}

.header {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    opacity: 0.9;
    font-size: 1rem;
}

.header-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    opacity: 0.2;
}

.search-section {
    padding: 30px;
    background: var(--light);
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

input {
    flex: 1;
    padding: 18px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 18px;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
}

button {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.result-section {
    padding: 0 30px;
    flex: 1;
}

.result-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border-left: 5px solid var(--primary);
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.address-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.label {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.label i {
    font-size: 1.2rem;
}

.value {
    color: var(--dark);
    text-align: right;
    font-weight: 500;
}

.error {
    background: #ffeaea;
    color: var(--danger);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border-left: 5px solid var(--danger);
    margin-bottom: 25px;
}

.no-result {
    background: #f0f5ff;
    color: var(--primary);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 25px;
    border: 2px dashed var(--primary);
}

.loading {
    text-align: center;
    padding: 30px;
    color: var(--primary);
    margin-bottom: 25px;
}

.loading i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.hidden {
    display: none;
}

.footer {
    background: linear-gradient(to right, var(--secondary), var(--primary));
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
    font-size: 0.9rem;
}

.stats {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

@media (max-width: 650px) {
    .input-group {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    .container {
        min-height: 90vh;
        border-radius: 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 15px;
    }
}

.history-btn {
    background: var(--light);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.history-btn:hover {
    background: var(--primary);
    color: white;
}