/* WordPress/dateiuebertragung-plugin/css/style.css */

.du-wrapper, 
.du-wrapper *, 
.du-container, 
.du-card, 
.du-btn {
    box-sizing: border-box !important;
}

.du-wrapper {
    font-family: inherit !important;
    color: #784503;
    line-height: 1.6;
    width: 100%;
}

.du-wrapper h1, 
.du-wrapper h2, 
.du-wrapper h3, 
.du-wrapper h4, 
.du-wrapper h5, 
.du-wrapper h6 {
    color: #1DC1B8 !important;
    margin-top: 0 !important;
    font-family: inherit !important;
}

.du-container {
    max-width: 800px;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 25px !important;
    background: #fdfdfd;
    font-family: inherit !important;
}

/* Buttons & Formulare */
.du-wrapper input, 
.du-wrapper select, 
.du-wrapper textarea, 
.du-wrapper button, 
.du-btn {
    font-family: inherit !important;
    font-size: 16px;
}

.du-wrapper input[type="text"], 
.du-wrapper input[type="email"], 
.du-wrapper input[type="password"], 
.du-wrapper select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 25px !important; /* Radius: Immer 25px */
    height: 48px; /* Feste Höhe */
    color: #784503;
    background-color: #fff;
}

.du-wrapper button, 
.du-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 25px !important; /* Radius: Immer 25px */
    height: 48px; /* Feste Höhe */
    padding: 0 24px;
    color: #FFFFFF !important; /* Schriftfarbe: Immer Weiß */
    text-decoration: none !important;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.1s;
}

.du-wrapper button:hover, 
.du-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #FFFFFF !important;
}

.du-wrapper button:active, 
.du-btn:active {
    transform: translateY(1px);
}

/* Spezifische Button-Farben */
.du-btn-submit, 
.du-btn-ok {
    background-color: #2F9E44 !important; /* OK oder Senden: Grün */
}

.du-btn-info {
    background-color: #1DC1B8 !important; /* ?: Türkis */
}

.du-btn-delete {
    background-color: #B03B3B !important; /* Löschen: Rot */
}

/* Tabellen */
.du-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

.du-wrapper table th {
    color: #1DC1B8;
    font-weight: 600;
}

/* Hilfsklassen */
.du-form-group {
    margin-bottom: 15px;
}

.du-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.du-alert {
    padding: 20px;
    border-radius: 25px !important;
    margin-bottom: 20px;
    background-color: #2F9E44 !important;
    color: #FFFFFF !important;
    border: 2px solid #2F9E44 !important;
    position: relative;
    padding-right: 50px;
    font-weight: 600;
}

.du-alert-error {
    background-color: #B03B3B !important;
    color: #FFFFFF !important;
    border: 2px solid #B03B3B !important;
}

.du-alert-success {
    background-color: #2F9E44 !important;
    color: #FFFFFF !important;
    border: 2px solid #2F9E44 !important;
}

.du-alert-close {
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    font-size: 32px;
    font-weight: bold;
    color: #FFFFFF;
}

.du-card {
    border: 2px solid #B03B3B !important;
    border-radius: 25px !important;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fdfdfd;
}

.du-file-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.du-file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.du-file-list li:last-child {
    border-bottom: none;
}

/* Modal Styles */
.du-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.du-modal-content {
    background-color: #fefefe;
    padding: 25px;
    border-radius: 25px !important;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.du-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.du-close:hover {
    color: #333;
}

/* Universal Border Radius Force */
.du-wrapper input, 
.du-wrapper textarea, 
.du-wrapper select, 
.du-wrapper button, 
.du-btn, 
.du-container, 
.du-card, 
.du-alert, 
.du-modal-content {
    border-radius: 25px !important;
}

/* Global Textarea Styling - White Background, Dark Text */
.du-wrapper textarea {
    background-color: #FFFFFF !important;
    color: #784503 !important;
    border: 1px solid #ddd !important;
    padding: 15px !important;
    font-family: inherit !important;
    border-radius: 25px !important;
}

.du-wrapper textarea::placeholder {
    color: #999 !important;
}

/* Form Validation Styles */
.du-invalid-field {
    border: 2px solid #B03B3B !important;
}

.du-valid-field {
    border: 2px solid #2F9E44 !important;
}

.du-error-hint {
    display: none;
    color: #B03B3B;
    font-size: 12px;
    margin-top: -2px;
    margin-left: 15px;
    font-weight: 600;
}

/* Placeholder adjustments for visibility */
.du-wrapper input::placeholder {
    color: #999;
}

/* Info Icon */
.du-info-icon {
    color: #B03B3B !important;
    text-decoration: none !important;
    font-size: inherit;
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block;
}

.du-info-icon:hover {
    text-decoration: none !important;
    transform: none !important;
}

/* Responsive Anpassungen für Mobilgeräte */
@media (max-width: 600px) {
    .du-container {
        margin: 10px auto !important;
        padding: 15px !important;
        width: 100% !important;
        border-radius: 15px !important;
    }
    .du-card {
        padding: 15px !important;
        border-radius: 15px !important;
    }
    .du-file-list li {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 15px 0 !important;
    }
    .du-file-list li > div {
        width: 100% !important;
    }
    .du-file-list li .du-btn {
        width: 100% !important;
        justify-content: center !important;
        height: 44px !important;
    }
}
