/* Authentication and User Info Styles */
.user-info-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.user-icon {
    font-size: 1.2rem;
}

#userDisplay {
    font-weight: 600;
}

.user-role {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Adjust main container for user bar */
body {
    padding-top: 50px;
}

/* Session info in footer */
.session-info {
    font-size: 0.85rem;
    color: #868e96;
    margin-top: 5px;
}

/* Access denied card */
.access-denied {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px;
}

.access-denied h3 {
    margin: 0 0 10px 0;
}

/* Disabled card style */
.tool-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.tool-card.disabled .card-button {
    background: #6c757d;
}