/* Idle Session Lock Styles for Salma Platform */

/* Warning Banner */
.salma-idlelock-warning-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-100%);
    background-color: #ffc107; /* Yellow warning color */
    color: #212529;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    font-family: "Tajawal", "Cairo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    min-width: 300px;
    max-width: 400px;
    transition: transform 0.3s ease-in-out;
    direction: rtl;
}

.salma-idlelock-warning-banner.show {
    transform: translateX(-50%);
}

.salma-idlelock-warning-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.salma-idlelock-warning-content p {
    margin: 0;
    flex-grow: 1;
    font-size: 14px;
}

.salma-idlelock-warning-content button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: "Tajawal", "Cairo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.salma-idlelock-warning-content button:hover {
    background-color: #0056b3;
}

/* Lock Overlay */
#salma-idlelock-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    direction: rtl;
    font-family: "Tajawal", "Cairo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

.salma-idlelock-modal {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.salma-idlelock-modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #4C1D95; /* Deep purple from Salma palette */
    font-size: 26px;
    font-weight: 700;
}

.salma-idlelock-modal p {
    margin-bottom: 30px;
    color: #495057;
    font-size: 16px;
    line-height: 1.6;
    white-space: pre-line; /* Allow line breaks in Arabic text */
}

#salma-idlelock-redirect-btn {
    background-color: #EC4899; /* Pink from Salma palette */
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    font-family: "Tajawal", "Cairo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

#salma-idlelock-redirect-btn:hover {
    background-color: #d13a82;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* No longer needed as there's no form */

/* Responsive design */
@media (max-width: 768px) {
    .salma-idlelock-modal {
        padding: 20px;
        margin: 20px;
    }
    
    .salma-idlelock-modal h2 {
        font-size: 20px;
    }
    
    .salma-idlelock-warning-banner {
        min-width: auto;
        width: calc(100% - 40px);
        left: 20px;
        transform: translateX(0) translateY(100%);
    }
    
    .salma-idlelock-warning-banner.show {
        transform: translateX(0) translateY(0);
    }
}