/* Danda Jatra - Admin Panel Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --topbar-height: 60px;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Login Page - Indian Hindu Design */
.login-page {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 25%, #FF6B6B 50%, #4ECDC4 75%, #45B7D1 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Decorative Elements */
.login-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 15%;
    animation-delay: 5s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 80%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.diya-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    animation: flicker 2s infinite alternate;
}

.diya-1 {
    top: 15%;
    right: 20%;
    animation-delay: 0s;
}

.diya-2 {
    bottom: 20%;
    left: 15%;
    animation-delay: 1s;
}

.diya-flame {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 20px;
    background: linear-gradient(180deg, #FFF9C4, #FF6B35);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
    animation: flameFlicker 1.5s infinite alternate;
}

@keyframes flicker {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

@keyframes flameFlicker {
    0% { transform: translateX(-50%) scale(1) rotate(-2deg); }
    100% { transform: translateX(-50%) scale(1.1) rotate(2deg); }
}

.om-symbol {
    position: absolute;
    top: 50%;
    left: 5%;
    font-size: 80px;
    font-family: 'Noto Sans Devanagari', sans-serif;
    color: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%) rotate(-15deg);
    font-weight: 700;
    animation: rotateOm 20s linear infinite;
}

@keyframes rotateOm {
    0% { transform: translateY(-50%) rotate(-15deg); }
    100% { transform: translateY(-50%) rotate(345deg); }
}

.lotus-decoration {
    position: absolute;
    bottom: 10%;
    right: 10%;
    font-size: 50px;
    color: rgba(255, 255, 255, 0.2);
    animation: bloom 10s infinite ease-in-out;
}

@keyframes bloom {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.2; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.3; }
}

.login-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 2;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B35, #F7931E, #FF6B6B, #4ECDC4, #45B7D1);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.temple-pattern {
    height: 8px;
    background: linear-gradient(90deg, #FF6B35 0%, #F7931E 25%, #FF6B6B 50%, #4ECDC4 75%, #45B7D1 100%);
    margin-bottom: 1rem;
    border-radius: 4px;
    position: relative;
}

.temple-pattern::before,
.temple-pattern::after {
    content: '';
    position: absolute;
    top: -8px;
    width: 20px;
    height: 20px;
    background: #FF6B35;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.temple-pattern::before {
    left: 20%;
}

.temple-pattern::after {
    right: 20%;
}

.om-icon {
    font-size: 48px;
    font-family: 'Noto Sans Devanagari', sans-serif;
    color: #FF6B35;
    margin-bottom: 0.5rem;
    display: inline-block;
    animation: pulseOm 3s infinite ease-in-out;
}

@keyframes pulseOm {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.login-title {
    color: #1a1a2e;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.sanskrit-text {
    font-family: 'Noto Sans Devanagari', sans-serif;
    color: #FF6B35;
    font-weight: 600;
}

.english-text {
    color: #6b7280;
    font-weight: 400;
}

/* Form Styles */
.login-form {
    margin-top: 2rem;
}

.form-group-hindu {
    position: relative;
}

.form-label-hindu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.label-icon {
    font-size: 1.125rem;
}

.input-wrapper-hindu {
    position: relative;
}

.form-control-hindu {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
    color: #1a1a2e;
}

.form-control-hindu:focus {
    outline: none;
    border-color: #FF6B35;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-control-hindu::placeholder {
    color: #9ca3af;
}

.input-decoration-left,
.input-decoration-right {
    position: absolute;
    top: 50%;
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, #FF6B35, #F7931E);
    border-radius: 2px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.input-decoration-left {
    left: 0;
}

.input-decoration-right {
    right: 0;
}

.form-control-hindu:focus ~ .input-decoration-left,
.form-control-hindu:focus ~ .input-decoration-right {
    opacity: 1;
}

/* Login Button */
.btn-login-hindu {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-login-hindu:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, #F7931E, #FF6B35);
}

.btn-login-hindu:active {
    transform: translateY(0);
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-login-hindu:hover .btn-shimmer {
    left: 100%;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.btn-login-hindu:hover .btn-icon {
    transform: translateX(5px);
}

/* Login Footer */
.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.divider-with-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

.divider-om {
    font-family: 'Noto Sans Devanagari', sans-serif;
    color: #FF6B35;
    font-size: 1.25rem;
    font-weight: 600;
}

.login-hint {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .om-symbol {
        font-size: 60px;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .diya-decoration {
        width: 30px;
        height: 30px;
    }
}

/* Sidebar */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
    transition: all 0.3s ease;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.sidebar-header button {
    color: white;
    border: none;
    background: transparent;
    font-size: 1.25rem;
}

.components {
    padding: 1rem 0;
}

.components li {
    margin: 0.25rem 0;
}

.components a {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.components a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.components li.active > a {
    background: var(--primary-color);
    color: white;
    border-left: 4px solid #fff;
}

.components a i {
    width: 24px;
    margin-right: 0.75rem;
    text-align: center;
}

.components a span {
    flex: 1;
}

.components .collapse {
    background: rgba(0, 0, 0, 0.2);
}

.components .collapse li a {
    padding-left: 3rem;
    font-size: 0.875rem;
}

.components .collapse li a i {
    font-size: 0.75rem;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.user-avatar {
    font-size: 2.5rem;
    margin-right: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    margin-bottom: 0.25rem;
}

.user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: white;
}

.logout-btn i {
    margin-right: 0.5rem;
}

/* Content Area */
.content {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    transition: all 0.3s ease;
    min-height: 100vh;
}

.content .navbar {
    background: white !important;
    box-shadow: var(--shadow);
    padding: 0.75rem 1.5rem;
}

.content .navbar button {
    border: none;
    background: transparent;
    font-size: 1.25rem;
    color: var(--text-dark);
    padding: 0.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card-primary {
    border-left-color: var(--primary-color);
}

.stat-card-primary .stat-icon {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.stat-card-success {
    border-left-color: #10b981;
}

.stat-card-success .stat-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-card-warning {
    border-left-color: #f59e0b;
}

.stat-card-warning .stat-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-card-info {
    border-left-color: #3b82f6;
}

.stat-card-info .stat-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.8125rem;
    margin: 0;
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-dark);
    padding: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background: var(--bg-light);
}

/* Small Table (for Dashboard Recent Events) */
.table-sm thead th {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

.table-sm tbody td {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.badge.small {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
}

/* Forms */
.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Badges */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    .content {
        width: 100%;
        margin-left: 0;
    }
    
    /* Mobile Statistics Cards - Compact Grid/List View */
    .stat-card {
        flex-direction: row;
        text-align: left;
        padding: 0.5rem;
        border-radius: 6px;
        align-items: center;
    }
    
    .stat-icon {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
        margin-right: 0.5rem;
        margin-bottom: 0;
        border-radius: 6px;
        flex-shrink: 0;
    }
    
    .stat-content {
        flex: 1;
        min-width: 0;
    }
    
    .stat-number {
        font-size: 1.1rem;
        margin-bottom: 0.05rem;
        line-height: 1.2;
    }
    
    .stat-label {
        font-size: 0.7rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Mobile Form Styles - Minimal Design */
    .h-md-3 {
        font-size: 1.5rem;
    }
    
    .h-md-5 {
        font-size: 1rem;
    }
    
    .form-label.small {
        font-size: 0.8125rem;
        font-weight: 500;
        margin-bottom: 0.25rem;
    }
    
    .form-control-sm,
    .form-select-sm {
        font-size: 0.875rem;
        padding: 0.375rem 0.5rem;
    }
    
    .card-body.p-2 {
        padding: 0.75rem !important;
    }
    
    .card-header.py-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .mb-2.mb-md-3 {
        margin-bottom: 0.75rem;
    }
    
    .mb-3.mb-md-4 {
        margin-bottom: 1rem;
    }
    
    .alert {
        padding: 0.75rem;
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .alert .btn-close {
        padding: 0.5rem;
    }
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
