/* Flex container for form and schema list */
.schema-flex-container {
    display: flex;
    gap: 2.5em;
    align-items: flex-start;
    margin-top: 1.5em;
}

.schema-form-container {
    min-width: 340px;
    max-width: 370px;
    flex: 0 0 370px;
}

.schema-list {
    flex: 1 1 0;
    min-width: 350px;
    max-width: 700px;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #fafbfc;
    margin: 0;
    padding: 2em;
    color: #222;
}
nav {
    margin-bottom: 2em;
}
nav a {
    color: #4a148c;
    text-decoration: none;
    margin-right: 1.5em;
    font-weight: 500;
}
nav a:hover {
    text-decoration: underline;
}
h1 {
    margin-bottom: 0.5em;
    color: #222;
}
h2 {
    margin-top: 2em;
    color: #333;
}
.schema-list {
    margin-bottom: 2em;
}
.schema-item {
    margin-bottom: 0.5em;
    padding: 0.3em 0;
}
.days {
    font-size: 0.95em;
    color: #555;
}
form {
    margin-bottom: 2em;
    background: #fff;
    padding: 1em 1.5em 1.5em 1.5em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    max-width: 350px;
}
label {
    display: block;
    margin-top: 0.7em;
    font-weight: 500;
}
input[type="text"] {
    width: 100%;
    padding: 0.4em;
    margin-top: 0.2em;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}
button {
    margin-top: 1em;
    padding: 0.5em 1.2em;
    background: #4a148c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}
button:hover {
    background: #6a1b9a;
}
.delete-btn {
    color: #d32f2f;
    cursor: pointer;
    margin-left: 1em;
    font-weight: 600;
    font-size: 0.98em;
}
.delete-btn:hover {
    text-decoration: underline;
}

/* Navigation styling */
.main-nav {
    display: flex;
    gap: 2em;
    margin-bottom: 2em;
    background: none;
    padding: 1em 2em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    align-items: center;
}
.main-nav .nav-link {
    color: #4a148c;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    padding: 0.2em 0.7em;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active {
    background: #d1c4e9;
    color: #1a237e;
}
.schema-list-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 700px;
}
.schema-list-li {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 1.2em;
    padding: 1em 1.5em 1em 1.5em;
    position: relative;
}
.schema-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 0.5em;
}
.schema-days-ul {
    list-style: disc inside;
    margin: 0 0 0 1em;
    padding: 0;
    color: #333;
    font-size: 0.98em;
}
.schema-docid {
    font-family: monospace;
    color: #444;
    font-size: 0.97em;
}
.schema-list-li .delete-btn {
    position: absolute;
    top: 1em;
    right: 1.5em;
}

/* Schemagalleri - pair link */
.pair-link {
    margin-left: 10px;
    font-size: 0.9em;
    color: #4CAF50;
}
.pair-link:hover {
    text-decoration: underline;
}

/* Pair-sida - visar två bilder bredvid varandra */
.pair-page {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
    gap: 10px;
}
.pair-page img {
    max-width: 49%;
    height: auto;
}

/* Enskild bild-sida */
.single-image-page {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.single-image-page img {
    max-width: 100%;
    max-height: 100vh;
    height: auto;
}