* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* অ্যানিমেটেড ব্যাকগ্রাউন্ড স্টার */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    pointer-events: none;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

/* লগইন কন্টেইনার */
.login-container, .dashboard {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 1000px;
    margin: 50px auto;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-shadow: 0 2px 10px rgba(0, 255, 255, 0.3);
    letter-spacing: 1px;
}

/* সিলেক্ট বক্স ও ইনপুট গ্রুপ */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #00d4ff;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

select, input {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

select:hover, input:hover {
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.1);
}

select:focus, input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

select option {
    background: #1a1a2e;
    color: white;
}

/* বাটন */
button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    background: linear-gradient(135deg, #00e5ff 0%, #00aadd 100%);
}

button:active {
    transform: translateY(0);
}

/* 3D টেবিল স্টাইল */
.result-card {
    margin-top: 30px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: perspective(1000px) translateZ(10px);
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: perspective(1000px) translateZ(20px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.result-card h3 {
    color: #00d4ff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* 3D টেবিল */
.citizen-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.citizen-table tr {
    transition: all 0.3s ease;
}

.citizen-table tr:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: scale(1.01);
}

.citizen-table th {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.citizen-table td {
    padding: 15px;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.citizen-table tr:last-child td {
    border-bottom: none;
}

.citizen-table th:first-child {
    border-top-left-radius: 15px;
}

.citizen-table th:last-child {
    border-top-right-radius: 15px;
}

/* হেডার স্টাইল */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    flex-wrap: wrap;
}

.header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.user-info {
    color: #00d4ff;
    font-size: 14px;
}

.user-info a {
    color: #ff6b6b;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.user-info a:hover {
    color: #ff4757;
    text-decoration: underline;
}

/* সার্চ বক্স */
.search-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.search-type {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.search-type label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    cursor: pointer;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.search-type label:hover {
    background: rgba(0, 212, 255, 0.2);
}

.search-type input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: #00d4ff;
}

/* এরর মেসেজ */
.error {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    text-align: center;
    border: 1px solid rgba(255, 107, 107, 0.3);
    backdrop-filter: blur(5px);
}

/* নোট */
.note {
    margin-top: 20px;
    font-size: 0.9em;
    color: #ffd93d;
    background: rgba(255, 217, 61, 0.1);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    border-left: 3px solid #ffd93d;
}

/* রেসপন্সিভ */
@media (max-width: 768px) {
    .login-container, .dashboard {
        padding: 1.5rem;
        margin: 20px auto;
    }
    
    .citizen-table th, 
    .citizen-table td {
        padding: 10px;
        font-size: 12px;
    }
    
    .header h2 {
        font-size: 1.2rem;
    }
    
    .search-type {
        flex-direction: column;
        gap: 10px;
    }
    
    .result-card h3 {
        font-size: 1.2rem;
    }
}

/* স্ক্রলবার কাস্টমাইজ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0099cc;
}