/* Grundlayout */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #e0e0e0, #ffffff);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Wrapper runt innehållet */
.container, main {
    background-color: #ffffff;
    padding: 30px;
    margin: 40px auto;
    max-width: 800px;
    width: 95%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Rubriker */
h1, h2, h3 {
    text-align: center;
    color: #333;
}

/* Länkar / knappar */
a {
    color: #2e8b57;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* Formulär */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    box-sizing: border-box;
    font-size: 16px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Knappar */
button, input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

button:hover, input[type="submit"]:hover {
    background-color: #45a049;
}

/* Inläggslistan */
.post {
    border-top: 1px solid #ddd;
    padding: 10px 0;
}

.post-title {
    font-weight: bold;
    font-size: 18px;
    color: #444;
}

.post-meta {
    font-size: 12px;
    color: #888;
}

/* Filuppladdning - miniatyrbilder */
.thumbnail {
    max-width: 150px;
    max-height: 150px;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    margin: 5px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 0 3px rgba(0,0,0,0.1);
}

.file-name {
    flex: 1;
    margin-right: 10px;
}

.file-delete {
    color: #c00;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: none;
}

.file-delete:hover {
    text-decoration: underline;
}

/* Responsivt */
@media (max-width: 600px) {
    .container, main {
        padding: 20px;
    }

    input, textarea, button {
        font-size: 14px;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

.form-box {
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    max-width: 400px;
    margin: 100px auto;
    text-align: center;
}

.form-box input,
.form-box button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    font-size: 16px;
    border: none;
    border-radius: 8px;
}

.form-box input {
    background-color: #fff;
    color: #000;
}

.form-box button {
    background-color: #00bcd4;
    color: #fff;
    cursor: pointer;
}

.form-box button:hover {
    background-color: #0097a7;
}
