
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}


.menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.menu a:hover {
    background-color: #34495e;
    color: #3498db;
}



.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    gap: 2rem;
    min-height: calc(100vh - 300px);
}
.content {
    flex: 1;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.content section:last-child {
    border-bottom: none;
}

.content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-left: 4px solid #3498db;
    padding-left: 1rem;
}

.content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.content ul {
    list-style-position: inside;
    margin: 1rem 0;
}

.content li {
    margin: 0.5rem 0;
    padding-left: 1rem;
}

.calculator {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
}

.calculator label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.calculator input {
    width: 100%;
    padding: 0.7rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.calculator button {
    width: 48%;
    padding: 0.7rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-right: 4%;
}

.calculator button:last-child {
    margin-right: 0;
}

.calculator button:hover {
    background-color: #2980b9;
}

#resultArea {
    margin-top: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

#resultArea p {
    margin: 0.5rem 0;
    font-weight: bold;
}

#resultArea span {
    color: #3498db;
}


.sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 90px;
    align-self: start;
}

.sidebar-box {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-box h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.sidebar-box ul {
    list-style: none;
}

.sidebar-box li {
    margin: 0.7rem 0;
}

.sidebar-box a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.sidebar-box a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.sidebar-box input {
    width: 100%;
    padding: 0.7rem;
    margin: 0.5rem 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.sidebar-box button {
    width: 100%;
    padding: 0.7rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
}

.sidebar-box button:hover {
    background-color: #2980b9;
}

.profile-box {
    text-align: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid #3498db;
}

.profile-title {
    color: #7f8c8d;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.footer {
    background-color: #2c3e50;
    color: white;
    margin-top: 2rem;
    padding: 2rem 0;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #3498db;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0 2rem;
    color: #bdc3c7;
}

/* Dark Mode */
body.dark-mode {
    background-color: #333;
    color: #fff;
}

body.dark-mode .navbar {
    background-color: #1a1a1a;
}

body.dark-mode .navbar a {
    color: #bdc3c7;
}

body.dark-mode .navbar a:hover {
    color: #fff;
}

body.dark-mode .sidebar {
    background-color: #444;
}

body.dark-mode .sidebar-box {
    background-color: #555;
    color: #fff;
    border: 1px solid #666;
}

body.dark-mode .content {
    background-color: #333;
    color: #fff;
}

body.dark-mode .content a {
    color: #7eb3ff;
}

body.dark-mode .content a:hover {
    color: #bdc3c7;
}

body.dark-mode .footer {
    background-color: #1a1a1a;
}

body.dark-mode button {
    background-color: #555;
    color: #fff;
    border: 1px solid #666;
}

body.dark-mode button:hover {
    background-color: #666;
    cursor: pointer;
}

body.dark-mode input {
    background-color: #444;
    color: #fff;
    border: 1px solid #666;
}

body.dark-mode input::placeholder {
    color: #aaa;
}

body.dark-mode ul {
    color: #fff;
}

/* Activity Container Styles */
#activityContainer {
    border: 1px solid #ddd;
    padding: 20px;
    margin-top: 20px;
    background-color: white;
    border-radius: 5px;
}

/* Activity 10 - Add Item */
#activity10-container .add-btn {
    padding: 10px 15px;
    margin-bottom: 10px;
}

#activity10-container ul {
    list-style: disc;
    padding-left: 20px;
}

#activity10-container li {
    margin-bottom: 5px;
}

/* Activity 11 - Delete Paragraph */
#activity11-container .text-paragraph {
    margin-bottom: 10px;
}

#activity11-container .del-btn {
    padding: 10px 15px;
}

/* Activity 12 - Character Counter */
#activity12-container .user-input {
    padding: 8px;
    margin-bottom: 10px;
    width: 300px;
}

#activity12-container .counter-text {
    font-weight: bold;
}

/* Activity 13 - Calculator */
#activity13-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#activity13-container .calc-input {
    padding: 8px;
    width: 100px;
}

#activity13-container .calc-btn {
    padding: 8px 15px;
}

#activity13-container .result {
    font-weight: bold;
    min-width: 100px;
}

/* Activity 14 - Image Swap */
#activity14-container .swap-image {
    display: block;
    margin-bottom: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    max-width: 100%;
    height: auto;
}

#activity14-container .img-btn {
    padding: 10px 15px;
}

/* Activity 15 - Task List */
#activity15-container .input-btn-container {
    margin-bottom: 10px;
}

#activity15-container .task-input {
    padding: 8px;
    margin-right: 10px;
    width: 250px;
}

#activity15-container .task-btn {
    padding: 8px 15px;
}

#activity15-container .task-list {
    margin-top: 10px;
    list-style: disc;
    padding-left: 20px;
}

#activity15-container .task-list li {
    margin-bottom: 5px;
}
