/* Abflug.cloud - Shared Styles version 1.0.0*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: rgb(0, 51, 102) /*linear-gradient(180deg, rgb(0, 51, 102) 0%, rgb(232, 244, 248) 100%)*/;
    color: #333;
    min-height: 100vh;
    padding: 20px;
}
.logo {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #003366;
    letter-spacing: -1px;
    text-transform: lowercase;
    font-style: italic;
}
.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 40px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

/* For index.html - center content */
body.index-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.index-page .container {
    max-width: 800px;
}
a {
    color: #0099CC;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
h1 {
    color: #0099CC;
    margin-bottom: 10px;
    font-size: 1.5em;
}
h2 {
    color: #0099CC;
    margin: 30px 0 15px 0;
    font-size: 1.2em;
    border-bottom: 2px solid #0099CC;
    padding-bottom: 10px;
}

h3 {
    color: #0099CC;
    margin: 20px 0 10px 0;
    font-size: 1.1em;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #0099CC;
}

.section h2 {
    margin-top: 0;
    border-bottom: none;
}

.code-block {
    background: #2d3748;
    color: #68d391;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    margin: 10px 0;
    overflow-x: auto;
    font-size: 0.9em;
    line-height: 1.6;
}
.status {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}
.status strong {
    color: #92400e;
    font-size: 1.1em;
}
.endpoint {
    background: #2d3748;
    color: #68d391;
    padding: 12px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    margin: 10px 0;
    word-break: break-all;
}

.screenshot-placeholder {
    background: #e2e8f0;
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #718096;
    margin: 20px 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.screenshot-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.features {
    margin: 30px 0;
    list-style: none;
}
.features li {
    margin: 15px 0;
    padding-left: 30px;
    position: relative;
}
.features li:before {
    content: "✈";
    position: absolute;
        left: 0;
        font-size: 1.2em;
}

.footer {
    margin-top: 30px;
    text-align: left;
    color: #666;
    font-size: 0.9em;
} 

.footer a {
    color: #0099CC;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

table th {
    background: #0099CC;
    color: white;
    font-weight: bold;
}

table tr:hover {
    background: #f7fafc;
}

ul, ol {
    margin: 10px 0 10px 30px;
}

li {
    margin: 5px 0;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    margin-left: 5px;
}

.badge.required {
    background: #fc8181;
    color: white;
}

.badge.optional {
    background: #fbbf24;
    color: white;
}

.nav-link {
    display: inline-block;
    margin: 10px 10px 10px 0;
    padding: 8px 16px;
    background: #0099CC;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-link:hover {
    background: #003366;
    text-decoration: none;
}

.toc {
    background: #edf2f7;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.toc ul {
    list-style: none;
    margin-left: 0;
}

.toc a {
    color: #0099CC;
    text-decoration: none;
}

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

.status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-top: 10px;
}

.status.online {
    background: #68d391;
    color: white;
}

.status.offline {
    background: #fc8181;
    color: white;
}

button {
    background: #0099CC;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
    margin: 5px;
}

button:hover {
    background: #003366;
}

#apiStatus {
    margin-top: 20px;
}

#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    border-top: 3px solid #0099CC;
}
#cookie-banner.show {
    display: block;
}
.cookie-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.cookie-text {
    flex: 1;
    min-width: 250px;
    color: #333;
    line-height: 1.5;
    font-size: 14px;
}
.cookie-buttons {
    display: flex;
    gap: 10px;
}
.cookie-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}
.cookie-button.accept {
    background: #0099CC;
    color: white;
}
.cookie-button.accept:hover {
    background: #003366;
}
.cookie-button.decline {
    background: #6c757d;
    color: white;
}
.cookie-button.decline:hover {
    background: #5a6268;
}

/* Login page specific styles */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}
.login-button {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s, opacity 0.3s;
}
.login-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    
}
.login-button.google {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-button.google:hover {
    opacity: 0.7;
}
.login-button.google:disabled,
.login-button.google.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.login-button.google img {
    display: block;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
}
.divider {
    text-align: center;
    margin: 20px 0;
    color: #666;
}
.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #0099CC;
    text-decoration: none;
}
.back-link:hover {
    text-decoration: underline;
}
.error-message {
    background: #fee;
    color: #c33;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #fcc;
}
.terms-checkbox {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.terms-checkbox input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
}
.terms-checkbox label {
    cursor: pointer;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    user-select: none;
}
.terms-checkbox label a {
    color: #0099CC;
    text-decoration: underline;
}
.terms-checkbox label a:hover {
    color: #003366;
}