/* LMS Elementor Widgets Styles */

.lms-deck-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.lms-columns-1 {
    grid-template-columns: 1fr;
}

.lms-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.lms-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.lms-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.lms-deck-card {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.lms-deck-card:hover {
    transform: translateY(-5px);
}

.lms-deck-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.lms-deck-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lms-deck-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: #333;
}

.lms-deck-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.lms-deck-button {
    margin-top: auto;
    background: #007bff;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s;
}

.lms-deck-button:hover {
    background: #0056b3;
    color: white;
}

/* Timer Styles */
.lms-test-timer {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    margin-bottom: 20px;
}

.lms-timer-time {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: monospace;
    color: #333;
}

.lms-timer-warning {
    color: #dc3545;
    margin-top: 10px;
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Enrollment Form */
.lms-enrollment-form-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.lms-form-group {
    margin-bottom: 15px;
}

.lms-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.lms-form-group input:not([type="checkbox"]):not([type="radio"]),
.lms-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.lms-submit-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

/* Popup Styles */
.lms-notification-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lms-popup-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.lms-popup-content {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.lms-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.lms-popup-btn {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 20px;
    font-weight: bold;
}

/* Lecture List */
.lms-lecture-list {
    list-style: none;
    padding: 0;
}

.lms-lecture-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.lms-lecture-item .dashicons {
    margin-right: 12px;
    color: #007bff;
}

.lms-lecture-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.lms-lecture-link:hover {
    color: #007bff;
}

/* Form Buttons - Custom Colors */
.lms-submit-btn,
.lms-btn {
    background: #FFBB00 !important;
    color: #333 !important;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.lms-submit-btn:hover,
.lms-btn:hover {
    background: #38B6FF !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 182, 255, 0.3);
}

.lms-btn-primary {
    background: #38B6FF !important;
    color: white !important;
}

.lms-btn-primary:hover {
    background: #FFBB00 !important;
    color: #333 !important;
}

.lms-btn-secondary {
    background: #6c757d !important;
    color: white !important;
}

.lms-btn-success {
    background: #28a745 !important;
    color: white !important;
}

/* Form Message Styling */
.lms-form-message {
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-weight: 500;
    text-align: center;
}

.lms-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lms-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Support Remember Me */
.lms-remember-me label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    font-weight: normal;
}

.lms-remember-me input {
    width: auto;
    margin: 0;
}

/* Login & Registration Forms */
.lms-login-form-container,
.lms-registration-form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.lms-login-form-container h3,
.lms-registration-form-wrapper h3 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
}

.lms-form input[type="text"],
.lms-form input[type="email"],
.lms-form input[type="password"],
.lms-form input[type="tel"],
.lms-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.lms-form input:focus,
.lms-form textarea:focus {
    outline: none;
    border-color: #38B6FF;
}

.lms-form button[type="submit"] {
    width: 100%;
    margin-top: 10px;
}

.lms-register-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.lms-register-link a {
    color: #38B6FF;
    text-decoration: none;
    font-weight: 600;
}

.lms-register-link a:hover {
    color: #FFBB00;
}