/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables (वेरिएबल) --- */
:root {
    --primary-color: #3a7bd5;
    --secondary-color: #00d2ff;
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --background-color: #eef1f5;
    --card-background-color: rgba(255, 255, 255, 0.75);
    --text-color: #4A5568;
    --heading-color: #1a202c;
    --border-color: #e2e8f0;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.4s;
    --border-radius: 16px;
}

/* --- एडवांस्ड एनिमेशन Keyframes --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(58, 123, 213, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(58, 123, 213, 0); }
    100% { box-shadow: 0 0 0 0 rgba(58, 123, 213, 0); }
}

/* --- ग्लोबल स्टाइल और एनिमेटेड बैकग्राउंड --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* बैकग्राउंड में आकर्षक गोलाकार शेप्स */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
}

body::before {
    width: 300px;
    height: 300px;
    background: rgba(58, 123, 213, 0.2);
    top: -50px;
    left: -50px;
    animation: float 15s infinite ease-in-out;
}

body::after {
    width: 400px;
    height: 400px;
    background: rgba(0, 210, 255, 0.2);
    bottom: -100px;
    right: -100px;
    animation: float 20s infinite ease-in-out reverse;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* --- Glassmorphism लॉगिन/रजिस्टर कंटेनर --- */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    animation: fadeIn 0.6s ease-out;
}

.container form {
    width: 100%;
    max-width: 450px;
    background: var(--card-background-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 45px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--heading-color);
    font-weight: 700;
}

/* --- डैशबोर्ड --- */
.dashboard-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    animation: fadeIn 0.6s ease-out;
}

/* --- एडवांस कार्ड्स और शिमर इफ़ेक्ट --- */
.card {
    background: var(--card-background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

/* होवर पर शिमर इफ़ेक्ट */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card:hover::before {
    left: 100%;
}

.card h2 {
    margin-bottom: 20px;
    color: var(--heading-color);
    font-size: 1.5rem;
    font-weight: 600;
}

/* --- एडवांस फॉर्म्स --- */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all var(--transition-speed) ease;
    background-color: #f9fafb;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(58, 123, 213, 0.1);
}

/* --- एनिमेटेड बटन --- */
.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-speed) ease;
    background-size: 200% auto;
}

.btn:hover {
    background-position: right center;
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(58, 123, 213, 0.4);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.2);
}

.bottom-text {
    text-align: center;
    margin-top: 25px;
}

/* --- डैशबोर्ड हेडर और मेनू --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.2rem;
    color: var(--heading-color);
}

.menu-btn {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: all var(--transition-speed) ease;
}

.menu-btn:hover {
    transform: rotate(10deg) scale(1.1);
    box-shadow: var(--shadow);
}

.dropdown-content {
    display: block; /*アニメーションのため*/
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    z-index: 101;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transform-origin: top right;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-content a {
    color: var(--text-color);
    padding: 14px 20px;
    display: block;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-image: var(--primary-gradient);
    color: #fff;
    padding-left: 25px;
}

/* --- चार्ट और टेबल --- */
.chart-container { height: 350px; }

.table-container { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table thead {
    background-color: #f8f9fa;
    color: var(--heading-color);
}

table tbody tr {
    transition: background-color var(--transition-speed) ease;
}

table tbody tr:hover {
    background-color: #f0f5ff;
}

/* --- एडवांस एक्शन बटन --- */
.actions-cell {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
}
.default-select {
  -webkit-appearance: menulist !important;
  -moz-appearance: menulist !important;
  appearance: menulist !important;
  background-image: none !important; /* कस्टम एरो को हटाता है */
  background-color: white !important; /* डिफ़ॉल्ट बैकग्राउंड */
}
.action-btn:hover {
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.update-btn { background-color: var(--info-color); }
.delete-btn { background-color: var(--danger-color); }

/* --- रिस्पॉन्सिव डिज़ाइन --- */
@media (max-width: 768px) {
    .header { align-items: flex-start; }
    .header h1 { font-size: 1.8rem; }
    .container form, .card { padding: 25px; }
}

@media (max-width: 480px) {
    body { font-size: 14px; }
    .header { flex-direction: column; gap: 15px; align-items: stretch; }
    .dropdown-content { min-width: 100%; }
}