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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Header */
.header {
    background: #007bff;
    color: #fff;
    padding: 1rem 0;
    margin-bottom: 20px;
}

.header h1 {
    display: inline-block;
    font-size: 1.8rem;
}

.header nav {
    float: right;
}

.header ul {
    list-style: none;
}

.header li {
    display: inline;
    margin-left: 20px;
}

.header a {
    color: #fff;
    text-decoration: none;
}

.header a:hover {
    text-decoration: underline;
}

/* Hero */
.hero {
    background: #007bff;
    color: #fff;
    text-align: center;
    padding: 4rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: #0056b3;
    color: #fff;
}

.btn-primary:hover {
    background: #003d80;
}

/* Features */
.features {
    padding: 3rem 0;
    background: #fff;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    margin-bottom: 0.5rem;
}

/* About */
.about {
    padding: 3rem 0;
    background: #f4f4f4;
    text-align: center;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Notes App Specific */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}

input[type="text"],
input[type="password"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 10px;
    background: #e0e0e0;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
}

.tab-button.active, .tab-button:hover {
    background: #007bff;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

#noteForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#noteTitle, #noteContent, #imageUpload {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

#noteContent {
    height: 200px;
    resize: vertical;
}

button {
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background: #0056b3;
}

#noteCanvas {
    border: 1px solid #000;
    background: #fff;
    display: block;
    margin: 0 auto;
}

.controls {
    text-align: center;
    margin: 10px 0;
}

#notesList {
    display: grid;
    gap: 20px;
}

.note {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 4px;
    background: #f9f9f9;
}

.note img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

#uploadStatus {
    margin-top: 10px;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        display: block;
        text-align: center;
    }
    .header nav {
        float: none;
        text-align: center;
        margin-top: 1rem;
    }
    .header li {
        display: block;
        margin: 0.5rem 0;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
}
