﻿/* Full Screen Loader */
.fullscreen-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.loader-content {
    text-align: center;
}

/* Law-themed Loader Animation */
.law-loader {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.scales {
    position: relative;
    width: 120px;
    height: 60px;
    margin: 70px auto 0;
    transform-origin: center;
    animation: sway 2s ease-in-out infinite;
}

.scale {
    position: absolute;
    width: 60px;
    height: 120px;
    background: linear-gradient(135deg, #C5A572, #8B7355);
    border-radius: 30px 30px 10px 10px;
    top: -60px;
}

    .scale.left {
        left: 0;
        transform-origin: bottom right;
        animation: tiltLeft 2s ease-in-out infinite;
    }

    .scale.right {
        right: 0;
        transform-origin: bottom left;
        animation: tiltRight 2s ease-in-out infinite;
    }

.pillar {
    position: absolute;
    width: 20px;
    height: 100px;
    background: linear-gradient(to right, #B89C7A, #8B7355, #B89C7A);
    left: 50px;
    top: -40px;
    border-radius: 10px;
}

.loader-text {
    margin-top: 30px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: pulse 1.5s ease-in-out infinite;
}

/* Loader Animations */
@keyframes sway {
    0%, 100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(5deg);
    }

    75% {
        transform: rotate(-5deg);
    }
}

@keyframes tiltLeft {
    0%, 100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

@keyframes tiltRight {
    0%, 100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* Page Transition Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #C5A572, #8B7355, #C5A572);
    z-index: 10000;
    animation: loading 1.5s ease-in-out infinite;
    display: none;
}

@keyframes loading {
    0% {
        width: 0;
        left: 0;
    }

    50% {
        width: 100%;
        left: 0;
    }

    100% {
        width: 0;
        left: 100%;
    }
}

/* Toast Notifications */
.toast-notification {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border-right: 4px solid;
    margin-bottom: 10px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

    .toast-notification.success {
        border-right-color: #28a745;
    }

    .toast-notification.error {
        border-right-color: #dc3545;
    }

    .toast-notification.warning {
        border-right-color: #ffc107;
    }

    .toast-notification.info {
        border-right-color: #17a2b8;
    }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}
