/**
 * Projektname    : The Story
 * Pfad           : /general/css/
 * Dateiname      : layout.css
 * Dateiversion   : 1.2
 * Änderungsdatum : 2025-06-10
 * Entwicklername : Firefly
 */

/* Container */
#container, .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.content-container {
    list-style-type: none;
    margin: 0;
    overflow: visible;
    position: relative;
    border-radius: 8px;

    justify-content: center;
	border: 1px solid silver;
	padding: 20px;
}

.content-container h2 {
    padding: 10px;
}

/* Message Container */
#messageContainer {
    margin: 10px 0;
}

/* Success Message */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 10px;
    text-align: center;
}

/* Error Message */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 10px;
    text-align: center;
}

/* Global Button */
.button {
    display: inline-block;
    padding: 10px 10px;
	min-width: 20px;
	min-height: 15px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
	text-align: center;
	margin: 5px;
}

.button:hover {
    background-color: #45a049;
}

.buttonRght {
    float: right;
    margin-left: 10px;
}

/* Delete Button (rote Variante) */
.deleteBtn {
   display: inline-block;
    padding: 10px 10px;
	min-width: 38px;
	min-height: 15px;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
	text-align: center;
	margin: 5px;
}

.deleteBtn:hover {
    background-color: #c0392b;
}

/* Buttons oder Elemente im disabled Zustand */
button.disabled,
.button.disabled,
input[type="button"].disabled,
input[type="submit"].disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none; /* verhindert Klicks */
    filter: grayscale(50%);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

/* Optional für andere Elemente */
.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(50%);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

/* Global Spinner */
#globalSpinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

#globalSpinner .spinner-inner {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

#globalSpinner .spinner-inner i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

#globalSpinner .spinner-inner .spinner-saying {
    font-size: 14px;
    color: #555;
}

/* Global Blocker */
#globalBlocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 9999;
    cursor: wait;
    display: none;
}

/* Global Blocker */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10000;
}

.confirm-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    text-align: center;
    transform: translateY(-10px);
    animation: fadeInUp 0.3s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}