/* Staff Session Management Styles */

.staff-page {
    /* เพิ่ม styles เฉพาะสำหรับ staff pages */
}

/* Session timeout warning */
.session-warning {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    display: none;
}

.session-warning.show {
    display: block;
}

.session-warning .warning-title {
    font-weight: bold;
    color: #856404;
    margin-bottom: 8px;
}

.session-warning .warning-message {
    color: #856404;
    font-size: 14px;
    margin-bottom: 10px;
}

.session-warning .warning-actions {
    display: flex;
    gap: 10px;
}

.session-warning .btn-extend {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.session-warning .btn-logout {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

/* Session status indicator */
.session-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #28a745;
    z-index: 9998;
    transition: background-color 0.3s ease;
}

.session-status.warning {
    background-color: #ffc107;
}

.session-status.danger {
    background-color: #dc3545;
}

/* Staff specific styles */
.staff-page .container-fluid {
    max-width: 768px;
    margin: 0 auto;
}

.staff-page .card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.staff-page .btn {
    border-radius: 8px;
    font-weight: 500;
}

/* Session management for mobile */
@media (max-width: 768px) {
    .session-warning {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .session-status {
        bottom: 10px;
        right: 10px;
    }
} 