/* Communication Skills Course - Main Stylesheet */

:root {
    --primary-color: #4A90E2;
    --secondary-color: #F5A623;
    --success-color: #7ED321;
    --danger-color: #E94B3C;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), #357ABD);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand:hover {
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Progress Bar */
.progress-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--primary-color));
    border-radius: 15px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Module Header */
.module-header {
    background: linear-gradient(135deg, var(--primary-color), #5BA3F5);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.module-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.module-number {
    display: inline-block;
    background-color: var(--secondary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Learning Objectives */
.objectives-box {
    background-color: #FFF9E6;
    border-left: 5px solid var(--secondary-color);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.objectives-box h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.objectives-box ul {
    margin-left: 2rem;
    line-height: 2;
}

.objectives-box li {
    margin-bottom: 0.5rem;
}

/* Content Sections */
.content-section {
    background-color: white;
    padding: 2.5rem;
    margin: 2rem 0;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-section h3 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Story Box */
.story-box {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    border-left: 5px solid var(--success-color);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.story-box h4 {
    color: var(--success-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.story-character {
    font-weight: bold;
    color: var(--primary-color);
}

/* Example Box */
.example-box {
    background-color: #E3F2FD;
    border-left: 5px solid var(--primary-color);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.example-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tip Box */
.tip-box {
    background-color: #FFF3E0;
    border-left: 5px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 10px;
    display: flex;
    align-items: start;
    gap: 1rem;
}

.tip-icon {
    font-size: 2rem;
    color: var(--secondary-color);
}

.tip-content h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Interactive Elements */
.interactive-section {
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7);
    padding: 2.5rem;
    margin: 2rem 0;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.interactive-section h3 {
    color: #7B1FA2;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

/* Quiz Styles */
.quiz-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.quiz-question {
    margin-bottom: 2rem;
}

.quiz-question h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    background-color: var(--bg-light);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.quiz-option:hover {
    background-color: #E3F2FD;
    transform: translateX(5px);
}

.quiz-option.selected {
    background-color: #E3F2FD;
    border-color: var(--primary-color);
}

.quiz-option.correct {
    background-color: #C8E6C9;
    border-color: var(--success-color);
}

.quiz-option.incorrect {
    background-color: #FFCDD2;
    border-color: var(--danger-color);
}

.quiz-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: bold;
}

.quiz-feedback.correct {
    background-color: #C8E6C9;
    color: #2E7D32;
}

.quiz-feedback.incorrect {
    background-color: #FFCDD2;
    color: #C62828;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #357ABD);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #E89512);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #6BC117);
    color: white;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

/* Drag and Drop */
.drag-drop-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.draggable-items, .drop-zones {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
}

.draggable-item {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    cursor: move;
    transition: all 0.3s;
}

.draggable-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.drop-zone {
    border: 2px dashed var(--text-light);
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    min-height: 60px;
    transition: all 0.3s;
}

.drop-zone.drag-over {
    background-color: #E3F2FD;
    border-color: var(--primary-color);
}

.drop-zone.filled {
    border-style: solid;
    border-color: var(--success-color);
}

/* Summary Box */
.summary-box {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    padding: 2.5rem;
    margin: 2rem 0;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.summary-box h3 {
    color: var(--success-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.key-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.key-point {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: start;
    gap: 1rem;
}

.key-point-icon {
    font-size: 2rem;
    color: var(--success-color);
}

/* Navigation Buttons */
.module-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-btn {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.card p {
    text-align: center;
    color: var(--text-light);
}

/* Chat Simulation */
.chat-simulator {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), #357ABD);
    color: white;
    padding: 1rem;
    font-weight: bold;
}

.chat-messages {
    padding: 2rem;
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    background-color: #F5F5F5;
}

.chat-message {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-bubble {
    max-width: 70%;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.chat-bubble.user {
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 5px;
}

.chat-bubble.bot {
    background-color: white;
    color: var(--text-dark);
    border-bottom-left-radius: 5px;
}

.chat-input-area {
    padding: 1rem;
    background-color: white;
    border-top: 1px solid #E0E0E0;
    display: flex;
    gap: 1rem;
}

.chat-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.chat-input:focus {
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-links a {
        text-align: center;
    }
    
    .module-header h1 {
        font-size: 1.8rem;
    }
    
    .drag-drop-container {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .module-navigation {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .container {
        padding: 1rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

/* Loading Spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Infographic Styles */
.infographic {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    text-align: center;
}

.infographic-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.infographic-item {
    flex: 1;
    min-width: 150px;
}

.infographic-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.infographic-label {
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.infographic-description {
    color: var(--text-light);
    font-size: 0.9rem;
}
