/**
 * Christmas Effects for EKTM Application
 * Created: December 28, 2025
 */

/* Christmas Color Theme */
:root {
    --christmas-red: #d42c28;
    --christmas-green: #2d5a2d;
    --christmas-gold: #ffd700;
    --christmas-white: #ffffff;
    --christmas-dark-green: #1a4a1a;
    --christmas-light-red: #ff6b6b;
}

/* Christmas Header Decoration */
.christmas-header {
    position: relative;
    background: linear-gradient(45deg, var(--christmas-red), var(--christmas-green), var(--christmas-gold));
    background-size: 400% 400%;
    animation: christmasGradient 3s ease infinite;
    padding: 10px 0;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(212, 44, 40, 0.3);
}

@keyframes christmasGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Christmas Bells */
.christmas-bell {
    position: fixed;
    top: 10px;
    right: 20px;
    font-size: 24px;
    color: var(--christmas-gold);
    animation: bellSwing 2s ease-in-out infinite;
    z-index: 1000;
    cursor: pointer;
}

@keyframes bellSwing {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

/* Snow Animation */
.snowflake {
    position: fixed;
    top: -10px;
    z-index: 9999;
    user-select: none;
    cursor: default;
    animation-name: snowfall;
    animation-duration: 10s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    color: #fff;
    font-size: 1em;
    opacity: 0.8;
}

@keyframes snowfall {
    0% {
        transform: translateY(-100vh);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Christmas Tree Decoration */
.christmas-tree {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 40px;
    color: var(--christmas-green);
    animation: treeGlow 2s ease-in-out infinite alternate;
    z-index: 1000;
    cursor: pointer;
}

@keyframes treeGlow {
    0% {
        text-shadow: 0 0 5px var(--christmas-green);
        transform: scale(1);
    }
    100% {
        text-shadow: 0 0 20px var(--christmas-gold), 0 0 30px var(--christmas-red);
        transform: scale(1.1);
    }
}

/* Christmas Wreath */
.christmas-wreath {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 30px;
    color: var(--christmas-green);
    animation: wreathRotate 20s linear infinite;
    z-index: 1000;
}

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

/* Christmas Lights */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(
        90deg,
        var(--christmas-red) 0%,
        var(--christmas-green) 20%,
        var(--christmas-gold) 40%,
        var(--christmas-red) 60%,
        var(--christmas-green) 80%,
        var(--christmas-gold) 100%
    );
    animation: lightsBlink 1s ease-in-out infinite alternate;
    z-index: 999;
}

@keyframes lightsBlink {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Christmas Sparkles */
.sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    animation: sparkleFloat 3s ease-in-out infinite;
}

@keyframes sparkleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.5;
    }
}

/* Christmas Card Effect */
.christmas-card {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border: 3px solid var(--christmas-gold);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.christmas-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--christmas-red), var(--christmas-gold), var(--christmas-green));
    border-radius: 15px;
    z-index: -1;
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Christmas Button Styles */
.btn-christmas {
    background: linear-gradient(45deg, var(--christmas-red), var(--christmas-green));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-christmas:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 44, 40, 0.4);
    color: white;
}

.btn-christmas::before {
    content: '';
    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;
}

.btn-christmas:hover::before {
    left: 100%;
}

/* Christmas Modal Enhancement */
.modal-content.christmas-modal {
    border: 3px solid var(--christmas-gold);
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.modal-header.christmas-header {
    background: linear-gradient(45deg, var(--christmas-red), var(--christmas-green));
    color: white;
    border-radius: 12px 12px 0 0;
}

/* Christmas Table Styles */
.table.christmas-table thead {
    background: linear-gradient(45deg, var(--christmas-red), var(--christmas-green));
    color: white;
}

.table.christmas-table tbody tr:nth-child(even) {
    background-color: rgba(212, 44, 40, 0.1);
}

.table.christmas-table tbody tr:hover {
    background-color: rgba(45, 90, 45, 0.2);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Christmas Form Styles */
.form-control.christmas-input {
    border: 2px solid var(--christmas-gold);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control.christmas-input:focus {
    border-color: var(--christmas-red);
    box-shadow: 0 0 10px rgba(212, 44, 40, 0.3);
}

/* Christmas Alert Styles */
.alert.christmas-alert {
    border-left: 5px solid var(--christmas-gold);
    background: linear-gradient(90deg, rgba(212, 44, 40, 0.1), rgba(45, 90, 45, 0.1));
    border-radius: 10px;
}

/* Holly Decoration */
.holly-decoration {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
    color: var(--christmas-green);
    animation: hollyBounce 2s ease-in-out infinite;
    z-index: 1000;
}

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

/* Christmas Loading Animation */
.christmas-loader {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(212, 44, 40, 0.3);
    border-radius: 50%;
    border-top-color: var(--christmas-red);
    animation: christmasLoaderSpin 1s ease-in-out infinite;
}

@keyframes christmasLoaderSpin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .christmas-tree,
    .christmas-wreath,
    .holly-decoration,
    .christmas-bell {
        display: none;
    }
    
    .snowflake {
        font-size: 0.8em;
    }
    
    .christmas-lights {
        height: 15px;
    }
}

/* Christmas Text Animations */
.christmas-text {
    background: linear-gradient(45deg, var(--christmas-red), var(--christmas-green), var(--christmas-gold));
    background-size: 200% 200%;
    animation: christmasTextGlow 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

@keyframes christmasTextGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Christmas Notification */
.christmas-notification {
    position: fixed;
    top: 50px;
    right: 20px;
    background: linear-gradient(45deg, var(--christmas-red), var(--christmas-green));
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}