/* Temple Color Palette */
:root {
    --temple-gold: #D5A24E;
    --temple-brown: #5B3A23;
    --temple-orange: #E8A24D;
    --temple-bg: #FFF8F0;
    --temple-white: #FFFFFF;
    --session-morning: #FF8C42;
    --session-evening: #6366F1;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /*background: linear-gradient(135deg, var(--temple-bg) 0%, var(--temple-white) 100%);*/
    background-image: url("../../assetsWEB/images/Donate BG.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
    color: var(--temple-brown);
}

/* Hindu Pattern Watermark */
.hindu-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    background-image: 
        repeating-linear-gradient(45deg, var(--temple-gold) 0px, var(--temple-gold) 2px, transparent 2px, transparent 10px),
        repeating-linear-gradient(-45deg, var(--temple-gold) 0px, var(--temple-gold) 2px, transparent 2px, transparent 10px);
}

/* Header Styles */
.temple-header {
    background: linear-gradient(135deg, var(--temple-brown) 0%, #3d2717 100%);
    color: var(--temple-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.temple-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--temple-orange) 0%, var(--temple-gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.temple-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--temple-white);
    margin: 0;
}

.temple-location {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Language Selector */
.language-selector .btn {
    border-radius: 25px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background-color: var(--temple-gold);  
    color: #000;  
}

.btn-outline-temple {
    color: var(--temple-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-temple:hover,
.btn-outline-temple.active {
    /*background-color: var(--temple-gold);*/
    background-color: #78350F;
    /*border-color: var(--temple-gold);*/
    border-color: #78350F;;
    color: var(--temple-white);
}

/* Temple Button */
.btn-temple {
    background: linear-gradient(135deg, var(--temple-gold) 0%, var(--temple-orange) 100%);
    color: var(--temple-white);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(213, 162, 78, 0.3);
}

.btn-temple:hover {
    background: linear-gradient(135deg, var(--temple-orange) 0%, var(--temple-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(213, 162, 78, 0.4);
    color: var(--temple-white);
}

/* Temple Card */
.temple-card {
    border: 2px solid rgba(213, 162, 78, 0.2);
    border-radius: 20px;
    background: var(--temple-white);
    transition: all 0.3s ease;
}

.temple-card:hover {
    border-color: var(--temple-gold);
    box-shadow: 0 8px 16px rgba(213, 162, 78, 0.2);
}

/* Temple Input */
.temple-input {
    border: 2px solid rgba(213, 162, 78, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.temple-input:focus {
    border-color: var(--temple-gold);
    box-shadow: 0 0 0 0.2rem rgba(213, 162, 78, 0.25);
}

/* Text Colors */
.temple-text-primary {
    color: var(--temple-brown);
}

.temple-text-secondary {
    color: rgba(91, 58, 35, 0.7);
}

.temple-text-gold {
    color: var(--temple-gold);
}

/* Landing Page Styles */
.welcome-icon {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-card {
    background: var(--temple-white);
    border-radius: 15px;
    border: 2px solid rgba(213, 162, 78, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--temple-gold);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(213, 162, 78, 0.2);
}

.feature-icon {
    font-size: 3rem;
}

/* Category Card */
.category-card {
    background: var(--temple-white);
    border-radius: 15px;
    border: 2px solid rgba(213, 162, 78, 0.2);
    padding: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--temple-gold);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(213, 162, 78, 0.2);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--temple-orange) 0%, var(--temple-gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
}

/* Service Item */
.service-item {
    background: var(--temple-white);
    border: 2px solid rgba(213, 162, 78, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    /*margin-bottom: 1rem;*/
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: var(--temple-gold);
    box-shadow: 0 4px 8px rgba(213, 162, 78, 0.15);
}

/* Session Badge */
.session-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.session-badge.morning {
    /*background-color: rgba(255, 140, 66, 0.1);
    color: var(--session-morning);
    border: 1px solid var(--session-morning);*/

    background-color: rgba(34, 197, 94, 0.1);
    color: #059669;
    border: 1px solid #059669;
}

.session-badge.evening {
    /*background-color: rgba(99, 102, 241, 0.1);
    color: var(--session-evening);
    border: 1px solid var(--session-evening);*/

    background-color: rgba(251, 191, 36, 0.1);
    color: #D97706;
    border: 1px solid #D97706;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

/* Ticket Styles */
.e-ticket {
    background: var(--temple-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ticket-header {
    background: linear-gradient(135deg, var(--temple-brown) 0%, #3d2717 100%);
    color: var(--temple-white);
    padding: 2rem;
}

.qr-code-placeholder {
    width: 200px;
    height: 200px;
    background: var(--temple-white);
    border: 4px solid var(--temple-gold);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.qr-pattern {
    position: absolute;
    inset: 1rem;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    gap: 2px;
}

.qr-cell {
    background: var(--temple-brown);
    border-radius: 2px;
}

/* Admin Styles */
.admin-sidebar {
    background: linear-gradient(180deg, var(--temple-brown) 0%, #3d2717 100%);
    min-height: 100vh;
    color: var(--temple-white);
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.admin-menu-item {
    display: block;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.admin-menu-item:hover,
.admin-menu-item.active {
    background-color: var(--temple-gold);
    color: var(--temple-white);
    transform: translateX(5px);
}

.stat-card {
    background: var(--temple-white);
    border-radius: 15px;
    border-left: 4px solid var(--temple-gold);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

/* Table Styles */
.temple-table {
    background: var(--temple-white);
    border-radius: 15px;
    overflow: hidden;
}

.temple-table thead {
    background-color: rgba(213, 162, 78, 0.1);
}

.temple-table th {
    border-bottom: 2px solid rgba(213, 162, 78, 0.2);
    color: var(--temple-brown);
    font-weight: 600;
    padding: 1rem;
}

.temple-table td {
    border-bottom: 1px solid rgba(213, 162, 78, 0.1);
    padding: 1rem;
    color: var(--temple-brown);
}

.temple-table tr:hover {
    background-color: rgba(213, 162, 78, 0.05);
}

/* Badge Styles */
.badge-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #059669;
    border: 1px solid #059669;
}

.badge-warning {
    background-color: rgba(251, 191, 36, 0.1);
    color: #D97706;
    border: 1px solid #D97706;
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border: 1px solid #DC2626;
}

/* Footer */
.temple-footer {
    background-color: rgba(91, 58, 35, 0.05);
    border-top: 2px solid rgba(213, 162, 78, 0.2);
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .temple-name {
        font-size: 1.125rem;
    }
    
    .temple-logo {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .welcome-icon {
        font-size: 3rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    .temple-header,
    .temple-footer,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .e-ticket {
        box-shadow: none;
        border: 2px solid var(--temple-gold);
    }
}

/* Loading Animation */
.spinner-temple {
    border: 4px solid rgba(213, 162, 78, 0.2);
    border-top: 4px solid var(--temple-gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Checkmark Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.success-checkmark .check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #4BB543;
}

.success-checkmark .check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.success-checkmark .check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: rotate-circle 4.25s ease-in;
}

.success-checkmark .check-icon .icon-line {
    height: 5px;
    background-color: #4BB543;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.success-checkmark .check-icon .icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.success-checkmark .check-icon .icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

@keyframes rotate-circle {
    0% { transform: rotate(-45deg); }
    5% { transform: rotate(-45deg); }
    12% { transform: rotate(-405deg); }
    100% { transform: rotate(-405deg); }
}

@keyframes icon-line-tip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 50px; left: -8px; top: 37px; }
    84% { width: 17px; left: 21px; top: 48px; }
    100% { width: 25px; left: 14px; top: 45px; }
}

@keyframes icon-line-long {
    0% { width: 0; right: 46px; top: 54px; }
    65% { width: 0; right: 46px; top: 54px; }
    84% { width: 55px; right: 0px; top: 35px; }
    100% { width: 47px; right: 8px; top: 38px; }
}
