.air-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.air-container {
    width: 95%;
    height: 90%;
    max-width: 1400px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.air-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.3));
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
}

.air-title h2 {
    color: #10b981;
    margin: 0;
    font-size: 24px;
}

.air-title p {
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0 0 0;
    font-size: 14px;
}

.air-controls {
    display: flex;
    gap: 15px;
}

.air-control-btn {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.air-control-btn:hover {
    background: rgba(16, 185, 129, 0.3);
    color: white;
}

.air-content-area {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    overflow: hidden;
}

.air-text-column {
    padding: 30px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.02);
}

.air-reading-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 16px;
}

.air-loading {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
}

.air-panel-column {
    background: rgba(0, 0, 0, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.air-panel {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    overflow-y: auto;
}

.air-panel h4 {
    color: #10b981;
    margin: 0 0 15px 0;
    font-size: 16px;
}

.air-chat-area {
    height: 250px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.air-message {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    line-height: 1.6;
}

.air-message.ai-message {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid #10b981;
}

.air-message.user-message {
    background: rgba(66, 165, 245, 0.1);
    border-left: 3px solid #42a5f5;
    text-align: right;
}

.air-input-area {
    display: flex;
    gap: 10px;
}

.air-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    color: white;
    font-size: 14px;
}

.air-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.air-send-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.air-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.air-annotation {
    background: rgba(16, 185, 129, 0.2);
    border-bottom: 2px solid #10b981;
    padding: 2px 4px;
    border-radius: 3px;
    cursor: help;
    transition: all 0.2s ease;
}

.air-annotation:hover {
    background: rgba(16, 185, 129, 0.3);
}

.vocabulary-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vocabulary-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.vocabulary-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.4);
}

.vocab-term {
    color: #10b981;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.vocab-definition {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.vocab-ask-btn {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.vocab-ask-btn:hover {
    background: rgba(16, 185, 129, 0.3);
    color: white;
    transform: translateY(-2px);
}

.air-chat-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.air-chat-popup-content {
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
}

.air-chat-popup-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.3));
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
}

.air-chat-popup-header h3 {
    color: #10b981;
    margin: 0;
    font-size: 20px;
}

.air-chat-close-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: bold;
}

.air-chat-close-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: white;
}

.air-chat-popup-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
}

.air-popup-chat-area {
    flex: 1;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    min-height: 300px;
    color: rgba(255, 255, 255, 0.95);
}

.air-popup-chat-area .air-message {
    color: rgba(255, 255, 255, 0.95);
}

.air-popup-chat-area .air-message strong {
    color: #fff;
}

.air-popup-input-area {
    display: flex;
    gap: 10px;
}
