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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Navbar Styles */
.navbar {
    width: 250px;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.navbar-header {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #34495e;
}

.navbar-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 10px;
}

.nav-button {
    width: 100%;
    padding: 12px 16px;
    background-color: transparent;
    color: #ecf0f1;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: #34495e;
    transform: translateX(5px);
}

.nav-item.active .nav-button {
    background-color: #3498db;
    font-weight: 600;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.content-wrapper {
    max-width: 1200px;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-wrapper h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.content-wrapper p {
    margin-bottom: 15px;
    color: #555;
}

.content-wrapper ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-wrapper li {
    margin-bottom: 8px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.service-card p {
    color: #666;
    margin: 0;
}

/* Contact Info */
.contact-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* API Demo Section */
.api-demo {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    border: 2px solid #3498db;
}

.api-demo h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.fetch-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.fetch-button:hover:not(:disabled) {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.fetch-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.error-message {
    background-color: #e74c3c;
    color: white;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-weight: 500;
}

.random-number-display {
    background-color: #2ecc71;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.random-number-display h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.number-value {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.checkboxlist {
    width: 20em;
    overflow: auto;
}
.checkboxlist label {
    width: 12em;
    float: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .navbar {
        width: 100%;
        padding: 15px;
    }

    .navbar-menu {
        display: flex;
        gap: 10px;
    }

    .nav-item {
        margin-bottom: 0;
        flex: 1;
    }

    .nav-button {
        text-align: center;
    }

    .main-content {
        padding: 20px;
    }

    .content-wrapper {
        padding: 20px;
    }

    .content-wrapper h1 {
        font-size: 2rem;
    }
}
