/* ========================================
   Salary Management System - Role Manager Styles
   ======================================== */

/* Role Banner Base */
.salary-role-banner {
    position: relative;
    isolation: isolate;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border-radius: 1rem;
}

.salary-role-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(255,255,255,0.15) 0%, transparent 50%);
    z-index: -1;
}

/* Administrator Banner */
.salary-role-banner-admin {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
}

.salary-role-banner-admin::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

/* Director Banner */
.salary-role-banner-director {
    background: linear-gradient(135deg, #b45309, #d97706);
    box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.4);
}

.salary-role-banner-director::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M30 20 L35 28 L44 30 L35 32 L30 40 L25 32 L16 30 L25 28 Z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
}

/* Salary Stat Cards */
.salary-stat-card {
    background: white;
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
}

.salary-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.salary-stat-card-admin::before {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
}

.salary-stat-card-director::before {
    background: linear-gradient(90deg, #b45309, #d97706);
}

.salary-stat-card:hover::before {
    transform: scaleX(1);
}

.salary-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

/* Quick Actions */
.salary-quick-actions-admin {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.salary-quick-actions-director {
    background: linear-gradient(135deg, #b45309, #d97706);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.salary-quick-actions-admin::before,
.salary-quick-actions-director::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.salary-quick-actions-admin:hover::before,
.salary-quick-actions-director:hover::before {
    opacity: 1;
}

/* Action Buttons */
.salary-action-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    color: white;
}

.salary-action-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Role Badges */
.salary-badge-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: rgba(79, 70, 229, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    color: #e0e7ff;
}

.salary-badge-director {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: rgba(217, 119, 6, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(217, 119, 6, 0.3);
    color: #fef3c7;
}

.salary-badge-admin:hover,
.salary-badge-director:hover {
    transform: scale(1.02);
}

/* Icon Containers */
.salary-icon-container {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Session Cards */
.salary-session-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.salary-session-card-director {
    background: rgba(0, 0, 0, 0.2);
}

.salary-session-card:hover {
    transform: translateY(-2px);
}

/* Notification Toast */
.salary-notification-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    animation: salarySlideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 1rem;
    overflow: hidden;
}

.salary-notification-toast.fade-out {
    animation: salaryFadeOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

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

@keyframes salaryShrink {
    from { width: 100%; }
    to { width: 0%; }
}

@keyframes salarySubtlePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.95; }
}

.salary-role-icon-pulse {
    animation: salarySubtlePulse 2s ease-in-out infinite;
}

/* Modal Styles */
.salary-modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .salary-icon-container {
        width: 3rem;
        height: 3rem;
    }
    
    .salary-badge-admin,
    .salary-badge-director {
        padding: 0.25rem 0.75rem;
        font-size: 0.7rem;
    }
    
    .salary-notification-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .salary-stat-card {
        background: #1e293b;
        border-color: #334155;
    }
    
    .salary-stat-card .text-gray-500,
    .salary-stat-card .text-gray-800 {
        color: #cbd5e1 !important;
    }
}