/* General Styles */

* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: 'Poppins', 'Roboto', sans-serif;
    display: flex;
    height: 100vh;
    background-color: #f5f5f5;
}

/* ========================= */
/* Back to Home Button */
/* ========================= */
.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: bold;
    color: #002E5D;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #002E5D;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease-in-out;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.back-home-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-home-btn:hover {
    background-color: #d20000b2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.back-home-btn:hover i {
    transform: translateX(-3px);
}

.split-screen {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Left Side: Branding */
.left-side {
    flex: 1;
    background: linear-gradient(rgba(0, 47, 93, 0.32), rgba(0, 47, 93, 0.27)), url("../images/spacs-doc2.jpg") no-repeat center center/cover;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Futuristic neon border on the right edge */
.left-side::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(
        180deg,
        #00CFFD 0%,
        #667eea 25%,
        #fc8181 50%,
        #00bcd4 75%,
        #00CFFD 100%
    );
    box-shadow: 
        0 0 20px rgba(0, 207, 253, 0.8),
        0 0 40px rgba(102, 126, 234, 0.6),
        0 0 60px rgba(252, 129, 129, 0.4);
    animation: neonPulse 3s ease-in-out infinite;
    z-index: 10;
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0, 207, 253, 0.8),
            0 0 40px rgba(102, 126, 234, 0.6),
            0 0 60px rgba(252, 129, 129, 0.4);
        opacity: 1;
    }
    50% {
        box-shadow: 
            0 0 30px rgba(0, 207, 253, 1),
            0 0 60px rgba(102, 126, 234, 0.8),
            0 0 90px rgba(252, 129, 129, 0.6);
        opacity: 0.9;
    }
}

.left-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 47, 93, 0.29) 0%, rgba(0, 47, 93, 0) 50%);
    z-index: 1;
}

.branding {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.left-side h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.left-side p {
    font-size: 1.2rem;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Right Side: Login Form */
.right-side {
    flex: 1;
    background: linear-gradient(135deg, #ff0000, #cc0000, #004ea7);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 30px 20px;
}

.right-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,.075)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Logo Container */
.logo-container {
    text-align: center;
    margin-bottom: 12px;
    animation: fadeInDown 0.8s ease-out;
}

.spacs-logo {
    width: 85px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: none;
}

/* ================================================================
   FUTURISTIC LOGIN FORM - GLASSMORPHISM & NEON BORDERS
   ================================================================ */

/* Login Form */
.login-form {
    position: relative;
    padding: 24px 32px;
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    /* Inner shadow for depth */
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    /* Animation on load */
    animation: formSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Four-sided neon border using pseudo-elements */
.login-form::before,
.login-form::after {
    content: '';
    position: absolute;
    border-radius: 24px;
    pointer-events: none;
}

/* Outer neon glow border */
.login-form::before {
    inset: -3px;
    padding: 3px;
    background: linear-gradient(
        135deg,
        #00CFFD 0%,      /* Cyan - top */
        #667eea 25%,     /* Purple/Blue - right */
        #fc8181 50%,     /* Red/Pink - bottom */
        #00bcd4 75%,     /* Teal - left */
        #00CFFD 100%     /* Cyan - complete circle */
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    filter: drop-shadow(0 0 20px rgba(0, 207, 253, 0.5))
            drop-shadow(0 0 40px rgba(102, 126, 234, 0.3));
    animation: rotateBorder 8s linear infinite;
}

/* Animated rotating border */
@keyframes rotateBorder {
    0% {
        filter: drop-shadow(0 0 20px rgba(0, 207, 253, 0.7))
                drop-shadow(0 0 40px rgba(102, 126, 234, 0.5)) hue-rotate(0deg);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(252, 129, 129, 0.7))
                drop-shadow(0 0 45px rgba(0, 188, 212, 0.5)) hue-rotate(180deg);
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(0, 207, 253, 0.7))
                drop-shadow(0 0 40px rgba(102, 126, 234, 0.5)) hue-rotate(360deg);
    }
}

@keyframes formSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Form Typography - Enhanced */
.login-form h2 {
    color: #ffffff;
    margin-bottom: 5px;
    font-size: 1.8rem;
    font-weight: 700;
    animation: fadeInUp 0.8s ease-out;
    text-shadow:
        0 0 20px rgba(0, 207, 253, 0.5),
        0 0 40px rgba(102, 126, 234, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
    font-size: 0.9rem;
    animation: fadeInUp 0.9s ease-out;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Form Groups */
.form-group {
    margin-bottom: 14px;
    text-align: left;
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(2) {
    animation-delay: 0.1s;
}

.form-group:nth-child(3) {
    animation-delay: 0.2s;
}

.form-group:nth-child(4) {
    animation-delay: 0.3s;
}

/* Enhanced Form Labels */
.form-group label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 207, 253, 0.8);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: #00CFFD;
    transform: translateY(-50%) scale(1.1);
}

/* Enhanced Futuristic Inputs */
.form-group input,
.form-group select {
    width: 100%;
    padding: 13px 16px 13px 46px;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Glassmorphism for inputs */
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.form-group input::placeholder,
.form-group select option:first-child {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='rgba(0, 207, 253, 0.8)' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    cursor: pointer;
}

/* Futuristic Dropdown Options - Aggressive styling with !important */
.form-group select option {
    background: #002244 !important;
    background-color: #002244 !important;
    color: #ffffff !important;
    padding: 14px 16px !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    border: none !important;
}

.form-group select option:hover {
    background: #00CFFD !important;
    background-color: #00CFFD !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.form-group select option:checked,
.form-group select option:focus,
.form-group select option[selected] {
    background: #667eea !important;
    background-color: #667eea !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Enhanced select dropdown styling for better futuristic look */
.form-group select::-ms-expand {
    display: none; /* Remove default arrow in IE */
}

.form-group select option:disabled {
    background: rgba(100, 100, 100, 0.3) !important;
    background-color: rgba(100, 100, 100, 0.3) !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Firefox specific dropdown styling */
@-moz-document url-prefix() {
    .form-group select option {
        background: #002244;
        color: #ffffff;
    }
    .form-group select option:hover {
        background: #00CFFD;
    }
}

.form-group input:focus,
.form-group select:focus {
    border-color: #00CFFD;
    outline: none;
    box-shadow:
        0 0 0 3px rgba(0, 207, 253, 0.25),
        0 0 20px rgba(0, 207, 253, 0.4),
        inset 0 1px 3px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

/* Enhanced focus effect for input icons */
.form-group input:focus ~ .input-icon,
.form-group select:focus ~ .input-icon {
    color: #00CFFD;
    transform: translateY(-50%) scale(1.1);
}

/* Form Options Container (Remember Me + Forgot Password) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
}

/* Enhanced Checkbox styling */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #00CFFD;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Enhanced Forgot Password */
.forgot-password {
    text-align: right;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.forgot-password a {
    color: #00CFFD;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 207, 253, 0.3);
}

.forgot-password a:hover {
    color: #fc8181;
    text-decoration: underline;
    text-shadow: 0 0 15px rgba(252, 129, 129, 0.5);
}

/* ================================================================
   FUTURISTIC LOGIN BUTTON WITH LOADING STATE
   ================================================================ */

.login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #00CFFD 0%, #667eea 50%, #fc8181 100%);
    background-size: 200% 200%;
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    box-shadow:
        0 8px 24px rgba(0, 207, 253, 0.4),
        0 0 40px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: gradientShift 3s ease infinite;
}

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

/* Shine effect */
.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
}

.login-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 12px 32px rgba(0, 207, 253, 0.6),
        0 0 60px rgba(102, 126, 234, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

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

/* Active/Pressed state */
.login-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* ================================================================
   LOADING STATE FOR LOGIN BUTTON
   ================================================================ */

.login-btn.loading {
    pointer-events: none;
    opacity: 0.8;
    animation: pulse 1.5s ease-in-out infinite;
}

.login-btn.loading span {
    display: none;
}

.login-btn.loading i {
    animation: spin 1s linear infinite;
}

.login-btn.loading::after {
    content: 'Logging in...';
    font-size: 1rem;
    font-weight: 600;
}

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

@keyframes pulse {
    0%, 100% {
        box-shadow:
            0 8px 24px rgba(0, 207, 253, 0.4),
            0 0 40px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow:
            0 8px 24px rgba(0, 207, 253, 0.6),
            0 0 60px rgba(102, 126, 234, 0.5);
    }
}

/* Enhanced Register Link */
.register-link {
    text-align: center;
    margin-top: 14px;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.register-link a {
    color: #00CFFD;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 207, 253, 0.3);
    border-bottom: 2px solid transparent;
}

.register-link a:hover {
    color: #fc8181;
    text-shadow: 0 0 15px rgba(252, 129, 129, 0.5);
    border-bottom-color: #fc8181;
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: all 0.3s ease;
    position: relative;
}

.modal-content h2 {
    color: #002E5D;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.modal-content p {
    margin-bottom: 20px;
    color: #555;
}

.modal-content input {
    width: 100%;
    padding: 14px 45px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-content .btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #002E5D, #004ea7);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 46, 93, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.modal-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 46, 93, 0.4);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.cancel-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 10px;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.cancel-btn:hover {
    background-color: #f5f5f5;
}

.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid #dc3545;
    animation: fadeIn 0.5s ease;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .split-screen {
        flex-direction: column;
    }

    .left-side {
        display: none;
    }

    .right-side {
        padding: 20px;
    }

    .login-form {
        max-width: 100%;
    }

    .back-home-btn {
        top: 10px;
        left: 10px;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

@media (max-width: 400px) {
    .login-form {
        padding: 20px;
    }

    .form-group input,
    .form-group select {
        padding: 12px 12px 12px 40px;
    }

    .input-icon {
        left: 12px;
    }
}

/* Form Options Layout */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 12px;
    height: 12px;
    animation-duration: 20s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 30%;
    width: 10px;
    height: 10px;
    animation-duration: 25s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 60%;
    animation-duration: 18s;
    animation-delay: 5s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 20%;
    width: 6px;
    height: 6px;
    animation-duration: 22s;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    top: 30%;
    left: 80%;
    width: 14px;
    height: 14px;
    animation-duration: 30s;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.2;
    }
    25% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(-100px) translateX(100px) rotate(180deg);
        opacity: 0.2;
    }
    75% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(0) translateX(0) rotate(360deg);
        opacity: 0.2;
    }
}

/* Custom Tooltip */
.role-tooltip {
    position: fixed;
    background: linear-gradient(135deg, #002E5D, #004ea7);
    color: white;
    padding: 12px 15px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    width: max-content;
    max-width: 280px;
    transform: scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
    z-index: 1000;
    text-align: left;
    pointer-events: none;
    clip-path: none !important; /* Ensure no diagonal cut on tooltip */
}

.role-tooltip::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent #002E5D transparent transparent;
}

/* Styles for when tooltip is on the left side */
.role-tooltip.left-side::before {
    left: auto;
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #002E5D;
}

.role-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    animation: tooltipPulse 2s infinite;
}

.role-tooltip i {
    margin-right: 8px;
    color: #ffcc00;
}

@keyframes tooltipPulse {
    0% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    }
    50% {
        box-shadow: 0 10px 30px rgba(0, 46, 93, 0.5);
    }
    100% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    }
}

@media (max-width: 768px) {
    .role-tooltip::before {
        left: 50%;
        top: 100%;
        transform: translateX(-50%);
        border-width: 10px 10px 0 10px;
        border-color: #002E5D transparent transparent transparent;
    }
}
