/* Custom styles for RBAC System */
/* PWA Installation Popup Styles */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    border-top: 3px solid #4e73df;
    animation: slideUp 0.3s ease-out;
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.pwa-install-icon {
    font-size: 28px;
    color: #4e73df;
    width: 50px;
    text-align: center;
}

.pwa-install-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.pwa-install-text strong {
    font-size: 16px;
    color: #2d3748;
}

.pwa-install-text span {
    font-size: 13px;
    color: #718096;
}

.pwa-install-content .btn {
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 600;
}

.pwa-install-content .btn-link {
    color: #718096;
    font-size: 18px;
    padding: 0 10px;
}

.pwa-install-content .btn-link:hover {
    color: #2d3748;
}

.pwa-install-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.pwa-install-modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.pwa-install-modal-content h4 {
    margin-bottom: 15px;
    color: #2d3748;
}

.pwa-install-modal-content p {
    color: #718096;
    margin-bottom: 20px;
}

.install-steps {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.install-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e8edf5;
}

.install-steps li:last-child {
    border-bottom: none;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #4e73df;
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.pwa-install-modal-content .btn {
    width: 100%;
    border-radius: 50px;
    padding: 12px;
    font-weight: 600;
}

.pwa-update-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2d3748;
    color: white;
    padding: 12px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    animation: slideUp 0.3s ease-out;
}

.pwa-update-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.pwa-update-content span {
    font-weight: 500;
}

.pwa-update-content .btn-link {
    color: rgba(255,255,255,0.6);
    padding: 0 10px;
    font-size: 20px;
}

.pwa-update-content .btn-link:hover {
    color: white;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Responsive */
@media (max-width: 576px) {
    .pwa-install-content {
        justify-content: center;
        text-align: center;
    }
    .pwa-install-text {
        min-width: 100%;
    }
    .pwa-install-modal-content {
        padding: 20px;
        margin: 10px;
    }
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fc;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    border-radius: 10px 10px 0 0 !important;
}

.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.sidebar {
    min-height: 100vh;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.sidebar .nav-link {
    color: #858796;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.sidebar .nav-link:hover {
    background-color: #eaecf4;
    color: #4e73df;
}

.sidebar .nav-link.active {
    background-color: #4e73df;
    color: white;
}

.sidebar .nav-link i {
    width: 1.5rem;
    text-align: center;
}

.navbar-brand {
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #224abe 0%, #4e73df 100%);
}

.profile-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #4e73df;
}

/* Animation for loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
}