/* FransVape Color Scheme */
:root {
    --brand-primary: #2d1b4e;
    --brand-accent: #00d4ff;
    --brand-dark: #1a0d2e;
    --text-light: #ffffff;
    --bg-dark: #0f0a1a;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Header with Logo & Smoke Effect */
#header {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: var(--text-light);
    padding: 15px 20px;
    font-weight: bold;
    border-bottom: 3px solid var(--brand-accent);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 212, 255, 0.2), 0 8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

/* Profile Section - Left */
.profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    left: 20px;
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-accent);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.1);
}

.profile-info {
    text-align: left;
}

.profile-info h2 {
    margin: 0;
    font-size: 18px;
    color: var(--brand-accent);
}

.profile-info p {
    margin: 5px 0;
    font-size: 12px;
    color: var(--text-light);
}

/* Brand Text - Centered */
#brand-text {
    font-size: 45px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #00d4ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Animate smoke swirls */
.logo-svg path {
    animation: smokeWave 3s ease-in-out infinite;
    transform-origin: center;
}

.logo-svg path:nth-of-type(1) {
    animation-delay: 0s;
}

.logo-svg path:nth-of-type(2) {
    animation-delay: 0.5s;
}

.logo-svg path:nth-of-type(3) {
    animation-delay: 1s;
}

@keyframes smokeWave {
    0%, 100% {
        stroke-width: 2;
        opacity: 0.7;
    }
    50% {
        stroke-width: 2.5;
        opacity: 1;
    }
}

@keyframes logoBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Smoke layer 1 */
#header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(45, 27, 78, 0.1) 0%, transparent 60%);
    animation: smokeFlow 8s ease-in-out infinite;
    pointer-events: none;
}

/* Smoke layer 2 */
#header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 60%, rgba(0, 212, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 70% 40%, rgba(45, 27, 78, 0.1) 0%, transparent 50%);
    animation: smokeFlow 10s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes smokeFlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(20px, -30px) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-15px, 20px) scale(0.95);
        opacity: 0.3;
    }
    75% {
        transform: translate(-25px, -15px) scale(1.05);
        opacity: 0.5;
    }
}

/* Menu Bar */
#menu-bar {
    background: var(--brand-dark);
    padding: 12px;
    text-align: center;
    border-bottom: 2px solid var(--brand-accent);
}

#menu-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#menu-bar li {
    display: inline;
    margin: 0 20px;
}

#menu-bar a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

#menu-bar a:hover {
    color: var(--brand-accent);
}

/* NOTE: main container styling moved into the .container block below */

/* Sidebar */
.sidebar {
    width: 220px;
    background: var(--brand-dark);
    padding: 15px;
    margin-right: 25px;
    border-radius: 12px;
    border: 2px solid var(--brand-accent);
    flex-shrink: 0;
}

.sidebar h2 {
    color: var(--text-light);
    border-bottom: 2px solid var(--brand-accent);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    color: var(--text-light);
    margin: 0;
    padding: 0;
}

.sidebar li {
    margin: 10px 0;
    color: var(--text-light);
}

.sidebar a {
    color: var(--brand-accent);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: var(--text-light);
}

/* Content Area */
#content-area {
    width: 100%;
}

#content-1, #content-2 {
    background: var(--brand-primary);
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    border-radius: 12px;
    border-left: 4px solid var(--brand-accent);
}

#content-1 h1, #content-2 h1 {
    color: var(--brand-accent);
    margin-top: 0;
}

#content-1 h3, #content-2 h3 {
    color: var(--text-light);
}

.container {
    display: flex;
    min-height: 500px;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--bg-dark);
}

.sidebar-btn {
    width: 100%;
    padding: 10px;
    background: var(--brand-accent);
    color: var(--brand-dark);
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.sidebar-btn:hover {
    background: var(--text-light);
    transform: scale(1.02);
}

/* Hidden by default */
.activities {
    display: none;
    margin-top: 15px;
}

.activities button {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 8px;
    background: var(--brand-primary);
    color: var(--brand-accent);
    border: 1px solid var(--brand-accent);
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.activities button:hover {
    background: var(--brand-accent);
    color: var(--brand-dark);
}

/* Footer */
#footer {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: var(--text-light);
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-top: 3px solid var(--brand-accent);
    font-weight: bold;
}

/* Activity Modal */
.activity-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    margin: 10% auto;
    padding: 30px;
    border: 2px solid var(--brand-accent);
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
    color: var(--text-light);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

#activity-display {
    min-height: 300px;
}

.close-modal {
    color: var(--brand-accent);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--text-light);
}

/* Activity 1 - Color buttons */
.color-btn-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

/* Exercise 2 list buttons */
.exercise-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.exercise-list button {
    padding: 12px 20px;
    border: 2px solid var(--brand-accent);
    border-radius: 8px;
    background: transparent;
    color: var(--text-light);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.exercise-list button:hover {
    background: var(--brand-accent);
    color: var(--brand-dark);
}

.color-btn {
    padding: 12px 20px;
    border: 2px solid var(--brand-accent);
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-light);
    background: transparent;
    transition: all 0.3s ease;
    min-width: 150px;
}

.color-btn:hover {
    background: var(--brand-accent);
    color: var(--brand-dark);
    transform: scale(1.05);
}

/* Activity 2 - Dark Mode Toggle */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 34px;
    background: var(--text-light);
    border-radius: 34px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: var(--brand-accent);
}

.slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 26px;
    height: 26px;
    background: var(--brand-dark);
    border-radius: 50%;
    transition: left 0.3s ease;
}

.toggle-switch.active .slider {
    left: 30px;
    background: var(--brand-primary);
}

body.dark-mode {
    background-color: #05030a;
}

body.dark-mode #menu-bar {
    background: #0a0615;
}

body.dark-mode .sidebar {
    background: #0d0820;
}

body.dark-mode #content-1,
body.dark-mode #content-2 {
    background: #1a0d30;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Activity 3 - List Items */
.list-container {
    margin: 20px 0;
}

.list-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.list-input-group input {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--brand-accent);
    border-radius: 6px;
    background: var(--brand-dark);
    color: var(--text-light);
    font-size: 14px;
}

.list-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.list-input-group button {
    padding: 10px 20px;
    background: var(--brand-accent);
    color: var(--brand-dark);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.list-input-group button:hover {
    transform: scale(1.05);
}

.item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item-list li {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid var(--brand-accent);
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-list li button {
    background: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

/* Activity 4 - Paragraph Remove */
.paragraph-container {
    margin: 20px 0;
}

.paragraph-item {
    background: rgba(0, 212, 255, 0.1);
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 6px;
    border-left: 4px solid var(--brand-accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.paragraph-item button {
    background: #ff4444;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* Activity 5 - Character Count */
.char-count-container {
    margin: 20px 0;
}

.char-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--brand-accent);
    border-radius: 6px;
    background: var(--brand-dark);
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.char-count-display {
    font-size: 18px;
    font-weight: bold;
    color: var(--brand-accent);
    text-align: center;
    padding: 15px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 6px;
}

/* Activity 6 - Calculator */
.calculator {
    max-width: 300px;
    margin: 20px auto;
}

.calc-display {
    width: 100%;
    padding: 15px;
    background: var(--brand-dark);
    border: 2px solid var(--brand-accent);
    border-radius: 6px;
    color: var(--brand-accent);
    font-size: 24px;
    margin-bottom: 15px;
    text-align: right;
    font-weight: bold;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.calc-buttons input {
    padding: 12px;
    border: 2px solid var(--brand-accent);
    border-radius: 6px;
    background: var(--brand-dark);
    color: var(--text-light);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-buttons input:hover {
    background: var(--brand-accent);
    color: var(--brand-dark);
}

/* Activity 7 - Image Change */
.image-container {
    text-align: center;
    margin: 20px 0;
}

.display-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
    border: 3px solid var(--brand-accent);
    border-radius: 10px;
    margin-bottom: 15px;
    background: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-accent);
    font-weight: bold;
}

.image-btn-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.image-btn-group button {
    padding: 10px 20px;
    background: var(--brand-accent);
    color: var(--brand-dark);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.image-btn-group button:hover {
    transform: scale(1.05);
}

/* Activity 8 - Todo List */
.todo-container {
    max-width: 400px;
    margin: 20px auto;
}

.todo-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.todo-input-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--brand-accent);
    border-radius: 6px;
    background: var(--brand-dark);
    color: var(--text-light);
}

.todo-input-group button {
    padding: 12px 25px;
    background: var(--brand-accent);
    color: var(--brand-dark);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.todo-input-group button:hover {
    transform: scale(1.05);
}

.todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.todo-item {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid var(--brand-accent);
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.todo-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-right: 10px;
}

.todo-item.completed {
    opacity: 0.6;
}

.todo-item.completed span {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.6);
}

.todo-item span {
    flex: 1;
}

.todo-item button {
    background: #ff4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.todo-item button:hover {
    background: #ff2222;
}

/* Grade Calculator Styles */
.grade-calculator {
    max-width: 400px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--brand-accent);
    border-radius: 4px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-size: 16px;
}

.input-group input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.button-group {
    text-align: center;
    margin-bottom: 20px;
}

.button-group button {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 4px;
    background-color: var(--brand-accent);
    color: var(--brand-dark);
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button-group button:hover {
    background-color: #00a8cc;
}

.results {
    text-align: center;
    padding: 15px;
    border: 1px solid var(--brand-accent);
    border-radius: 4px;
    background-color: rgba(0, 212, 255, 0.1);
}

.results h3 {
    margin-top: 0;
    color: var(--brand-accent);
}

.results p {
    margin: 5px 0;
    font-size: 18px;
    font-weight: bold;
}