* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
}

header {
    background-color: #4483c3;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
}

.search-box i {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.admin-button {
    background-color: white;
    color: #4483c3;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.admin-button:hover {
    background-color: #e6e6e6;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.demos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.demo-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.demo-card:hover {
    transform: translateY(-5px);
}

.demo-card h2 {
    color: #4483c3;
    margin-bottom: 1rem;
}

.demo-card p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.demo-link {
    display: inline-block;
    background-color: #4483c3;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    transition: background-color 0.2s;
    text-align: center;
}

.demo-link:hover {
    background-color: #3672b0;
}

/* Admin Panel Styles */
.admin-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
}

.admin-panel.active {
    right: 0;
}

.admin-panel.hidden {
    display: none;
}

.admin-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-content h2 {
    color: #4483c3;
    margin-bottom: 1rem;
}

.admin-content select,
.admin-content input,
.admin-content textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.admin-content textarea {
    height: 100px;
    resize: vertical;
}

#save-changes {
    background-color: #4483c3;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

#save-changes:hover {
    background-color: #3672b0;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    background-color: white;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .search-box {
        width: 100%;
    }

    .admin-panel {
        width: 100%;
        right: -100%;
    }

    .demos {
        grid-template-columns: 1fr;
    }
}