/* ========================================
   CLASS INVITATION & NOTIFICATION STYLES
   ======================================== */

/* ========================================
   Notification Bell (turns red when there are notifications)
   ======================================== */
.notification-bell-active {
    color: #ff4444 !important;
    animation: bellPulse 2s infinite;
}

@keyframes bellPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ========================================
   Invite Button (course detail page)
   ======================================== */
.invite-btn {
    background-color: #0CFE25;
    color: #010618;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.invite-btn i {
    color: #010618;
    font-size: 16px;
    margin-right: 5px;
}

.invite-btn:hover {
    background-color: #00ff66;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(12, 254, 37, 0.5);
}

.invite-btn:hover i {
    color: #010618;
}

/* ========================================
   Remove Button (course detail page)
   ======================================== */
.remove-btn {
    background-color: #ff4444;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.remove-btn i {
    color: #fff;
    font-size: 16px;
    margin-right: 5px;
}

.remove-btn:hover {
    background-color: #ff6666;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.remove-btn:hover i {
    color: #fff;
}

/* ========================================
   Modal Styles (invite modal)
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(1, 6, 24, 0.9);
}

.modal-content {
    background-color: #0d1525;
    margin: 10% auto;
    padding: 30px;
    border: 2px solid #0CFE25;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 0 20px rgba(12, 254, 37, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #0CFE25;
}

.modal-header {
    border-bottom: 2px solid #0CFE25;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    color: #0CFE25;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #aaa;
}

.form-group .help-text {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

/* Email fields container */
#emailFieldsContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
}

#emailFieldsContainer::-webkit-scrollbar {
    width: 8px;
}

#emailFieldsContainer::-webkit-scrollbar-track {
    background: #010618;
    border-radius: 4px;
}

#emailFieldsContainer::-webkit-scrollbar-thumb {
    background: #0CFE25;
    border-radius: 4px;
}

.email-field-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.email-input {
    flex: 1;
    padding: 10px 12px;
    background-color: #010618;
    border: 1px solid #333;
    border-radius: 5px;
    font-size: 14px;
    color: #fff;
    transition: all 0.3s;
}

.email-input:focus {
    outline: none;
    border-color: #0CFE25;
    box-shadow: 0 0 5px rgba(12, 254, 37, 0.3);
}

.email-input::placeholder {
    color: #666;
}

.add-email-btn {
    background-color: transparent;
    color: #0CFE25;
    border: 2px solid #0CFE25;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.add-email-btn:hover {
    background-color: #0CFE25;
    color: #010618;
    box-shadow: 0 0 10px rgba(12, 254, 37, 0.5);
}

.add-email-btn i {
    font-size: 22px;
    color: inherit;
}

.remove-email-btn {
    background-color: transparent;
    color: #ff4444;
    border: 2px solid #ff4444;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.remove-email-btn:hover {
    background-color: #ff4444;
    color: #010618;
    border-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.6);
}

.remove-email-btn i {
    font-size: 22px;
    color: inherit;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.modal-btn-primary {
    background-color: #0CFE25;
    color: #010618;
}

.modal-btn-primary i {
    color: #010618;
    font-size: 16px;
    margin-right: 5px;
}

.modal-btn-primary:hover {
    background-color: #00ff66;
    box-shadow: 0 0 10px rgba(12, 254, 37, 0.5);
}

.modal-btn-primary:hover i {
    color: #010618;
}

.modal-btn-secondary {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
}

.modal-btn-secondary:hover {
    background-color: #444;
    border-color: #0CFE25;
}

.modal-btn-danger {
    background-color: #ff4444;
    color: #fff;
}

.modal-btn-danger i {
    color: #fff;
    font-size: 16px;
    margin-right: 5px;
}

.modal-btn-danger:hover {
    background-color: #ff6666;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.modal-btn-danger:hover i {
    color: #fff;
}

/* Students checkbox list */
.students-checkbox-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 10px;
    background-color: #010618;
}

.students-checkbox-list::-webkit-scrollbar {
    width: 8px;
}

.students-checkbox-list::-webkit-scrollbar-track {
    background: #010618;
    border-radius: 4px;
}

.students-checkbox-list::-webkit-scrollbar-thumb {
    background: #0CFE25;
    border-radius: 4px;
}

.student-checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background-color: #0d1525;
    border: 1px solid #333;
    border-radius: 5px;
    transition: all 0.3s;
}

.student-checkbox-item:hover {
    background-color: #1a2332;
    border-color: #0CFE25;
    transform: translateX(5px);
}

.student-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: #0CFE25;
}

.student-checkbox-item label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    margin: 0;
}

.student-name {
    font-weight: bold;
    color: #0CFE25;
    font-size: 15px;
}

.student-email {
    color: #888;
    font-size: 13px;
}

.no-students-message {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-style: italic;
}

#inviteMessage {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Message item styles for different types */
.invite-message-item {
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
}

.invite-message-item.success {
    background-color: rgba(12, 254, 37, 0.1);
    color: #0CFE25;
    border-left-color: #0CFE25;
}

.invite-message-item.warning {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border-left-color: #ff9800;
}

.invite-message-item.error {
    background-color: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border-left-color: #ff4444;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Invitation Detail Page
   ======================================== */
.invitation-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

.invitation-card {
    background: #0d1525;
    border-radius: 10px;
    border: 2px solid #0CFE25;
    box-shadow: 0 0 20px rgba(12, 254, 37, 0.2);
    padding: 40px;
    margin-top: 20px;
}

.invitation-header {
    text-align: center;
    border-bottom: 2px solid #0CFE25;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.invitation-header h1 {
    color: #0CFE25;
    margin: 0;
}

.invitation-details {
    margin: 30px 0;
}

.detail-row {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #333;
}

.detail-label {
    font-weight: bold;
    width: 150px;
    color: #aaa;
}

.detail-value {
    flex: 1;
    color: #fff;
}

.invitation-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-accept {
    background-color: #0CFE25;
    color: #010618;
}

.btn-accept:hover {
    background-color: #00ff66;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(12, 254, 37, 0.6);
}

.btn-decline {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
}

.btn-decline:hover {
    background-color: #ff4444;
    border-color: #ff4444;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid;
}

.status-pending {
    background-color: #FFC107;
    color: #010618;
    border-color: #FFC107;
}

.status-accepted {
    background-color: #0CFE25;
    color: #010618;
    border-color: #0CFE25;
}

.status-declined {
    background-color: #333;
    color: #ff4444;
    border-color: #ff4444;
}

/* ========================================
   Notifications List Page
   ======================================== */
.notifications-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
}

.notifications-header {
    text-align: center;
    margin-bottom: 30px;
}

.notifications-header h1 {
    color: #0CFE25;
    margin: 0;
}

.notification-card {
    background: #0d1525;
    border-radius: 10px;
    border: 1px solid #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #0CFE25;
    transition: all 0.3s;
}

.notification-card:hover {
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(12, 254, 37, 0.3);
    border-left-color: #00ff66;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.notification-title {
    font-size: 18px;
    font-weight: bold;
    color: #0CFE25;
}

.notification-date {
    font-size: 12px;
    color: #888;
}

.notification-message {
    color: #aaa;
    margin-bottom: 15px;
}

.notification-action {
    display: inline-block;
    padding: 8px 20px;
    background-color: #0CFE25;
    color: #010618;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.notification-action:hover {
    background-color: #00ff66;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(12, 254, 37, 0.5);
}

.no-notifications {
    text-align: center;
    padding: 60px 20px;
    background: #0d1525;
    border-radius: 10px;
    border: 2px solid #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.no-notifications i {
    font-size: 64px;
    color: #333;
    margin-bottom: 20px;
}

.no-notifications p {
    color: #888;
    font-size: 18px;
}

