
/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&family=Merriweather&display=swap');

/* Reset and basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather', serif;
    background: linear-gradient(135deg, #0A1F3D, #8E44AD);
    color: #F5F5F5;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

/* Navigation Drawer */
.sidebar {
    width: 250px;
    background: #1A2A42;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100%;
    overflow-y: auto;
}

.sidebar h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    margin-bottom: 30px;
    color: #BDC3C7;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.sidebar a {
    text-decoration: none;
    color: #BDC3C7;
    font-size: 18px;
    margin: 15px 0;
    transition: color 0.3s, transform 0.3s;
}

.sidebar a:hover {
    color: #8E44AD;
    transform: scale(1.05);
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 20px;
    background: rgba(10, 31, 61, 0.9);
    flex: 1;
    overflow-y: auto;
}

.main-content h2, .main-content h3, .main-content h4 {
    font-family: 'Poppins', sans-serif;
    color: #F5F5F5;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 15px;
}

.main-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.main-content pre {
    background: #2A3F54;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Merriweather', serif;
    font-size: 14px;
    margin-bottom: 15px;
}

.main-content code {
    font-family: 'Courier New', Courier, monospace;
    color: #BDDAFF;
}

/* Buttons */
.button, .metal-button {
    background: linear-gradient(135deg, #8E44AD, #BDC3C7);
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    color: #F5F5F5;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.button:hover, .metal-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 8px rgba(0,0,0,0.4);
}

/* Cards */
.card {
    background: rgba(27, 46, 78, 0.8);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.card h4 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    line-height: 1.5;
}

/* Sample Article Section */
.sample-article {
    background: rgba(10, 31, 61, 0.85);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.sample-article h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.sample-article pre {
    background: #1A2A42;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Merriweather', serif;
    font-size: 14px;
    color: #BDDAFF;
}

/* Notification */
.notification {
    text-align: center;
    padding: 10px;
    background: rgba(142, 68, 173, 0.8);
    color: #F5F5F5;
    font-size: 16px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 1440px) {
    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
    }
}

@media (max-width: 1200px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
    }

    .main-content h2 {
        font-size: 22px;
    }

    .main-content p, .sample-article p {
        font-size: 15px;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 180px;
    }

    .main-content {
        margin-left: 180px;
    }

    .main-content h2 {
        font-size: 20px;
    }

    .main-content p, .sample-article p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .sidebar h1 {
        font-size: 20px;
    }

    .sidebar a {
        font-size: 16px;
    }

    .main-content h2 {
        font-size: 18px;
    }

    .main-content p, .sample-article p {
        font-size: 13px;
    }
}

@media (max-width: 320px) {
    .sidebar h1 {
        font-size: 18px;
    }

    .sidebar a {
        font-size: 14px;
    }

    .main-content h2 {
        font-size: 16px;
    }

    .main-content p, .sample-article p {
        font-size: 12px;
    }
}

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

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #8E44AD;
    border-top: 5px solid #BDC3C7;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.image-gallery img {
    width: 100%;
    border-radius: 5px;
}

/* Code Blocks */
.code-block {
    background: #1A2A42;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #BDDAFF;
    margin-bottom: 15px;
}

