/* Uploadformular Wrapper */
.ph-upload-form-wrapper {
    background: #2a2a2a; 
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 750px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

/* Upload Header */
.ph-upload-form-wrapper h4 {
    color: #333333;
    margin-bottom: 15px;
    font-size: 1.2em;
}

/* Eingabefelder */
.ph-upload-form-wrapper input.form-control,
.ph-upload-form-wrapper textarea.form-control {
    background-color: #f8f8f8;
    color: #333333;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 8px;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.95em;
}

/* Abstände zwischen den Formular-Zeilen */
.ph-upload-form-wrapper .ph-upload-row {
    margin-bottom: 15px;
}

/* Charcount-Box */
.ph-upload-form-wrapper .ph-upload-charcount {
    margin-top: 5px;
    font-size: 0.85em;
    color: #555;
}

/* Start Upload Button */
.ph-upload-form-wrapper #file-upload-submit {
    background-color: #4a4a4a;
    color: #f8f8f8;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    padding: 9px 17px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover-Effekt: Farben tauschen */
.ph-upload-form-wrapper #file-upload-submit:hover {
    background-color: #f8f8f8;
    color: #4a4a4a;
    border-color: #4a4a4a;
}

/* Loading Label */
.ph-upload-form-wrapper #loading-label {
    text-align: center;
    margin-top: 15px;
    color: #333333;
}

/* Loading Spinner */
.ph-upload-form-wrapper .ph-lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 20px;
	color: #f8f8f8;
}
.ph-upload-form-wrapper .ph-lds-ellipsis div {
    position: absolute;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4a4a4a;
	color: #f8f8f8;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

#phocagallery-upload h4 {
  color: #f8f8f8;
}

/* Verstecke das native Input */
.file-input-hidden {
    display: none;
}

.file-select-btn {
    display: inline-block;           
    padding: 6px 12px;               
    line-height: 1.5;                
    border-radius: 4px;
    background-color: #4a4a4a;
    color: #f8f8f8 !important;
    border: 1px solid #4a4a4a;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.file-select-btn:hover {
    background-color: #f8f8f8;
    color: #4a4a4a !important;
}

.file-name-display {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
    color: #f8f8f8;
    vertical-align: middle;
}

/* Vorschau Container */
#file-preview-wrapper {
    display: none;
    position: relative;
    max-width: 200px;
    margin-right: 20px;
}

/* Vorschau Bild */
#file-preview {
    width: 100%;
    display: block;
    border-radius: 4px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* leicht nach unten und rechts, 30% Deckkraft */
    border-radius: 4px; /* optional, abgerundete Ecken */
}

/* Vorschau X-Button */
#file-preview-clear {
    position: absolute;
    top: 2px;
    right: 2px;
    background: red; /* rote Hintergrundfarbe */
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;

    display: flex;
    align-items: center;      /* vertikal zentrieren */
    justify-content: center;  /* horizontal zentrieren */
    font-size: 14px;          /* optional, Größe des × anpassen */
    line-height: 1;           /* verhindert ungewollte Abstände */
    padding: 0;               /* entfernt default padding */
}




/* Loading Spinner Animation */
.ph-upload-form-wrapper .ph-lds-ellipsis div:nth-child(1) { left: 6px; animation: ph-lds-ellipsis1 0.6s infinite; }
.ph-upload-form-wrapper .ph-lds-ellipsis div:nth-child(2) { left: 6px; animation: ph-lds-ellipsis2 0.6s infinite; }
.ph-upload-form-wrapper .ph-lds-ellipsis div:nth-child(3) { left: 26px; animation: ph-lds-ellipsis2 0.6s infinite; }
.ph-upload-form-wrapper .ph-lds-ellipsis div:nth-child(4) { left: 45px; animation: ph-lds-ellipsis3 0.6s infinite; }

@keyframes ph-lds-ellipsis1 { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes ph-lds-ellipsis2 { 0% { transform: translate(0,0); } 100% { transform: translate(19px,0); } }
@keyframes ph-lds-ellipsis3 { 0% { transform: scale(1); } 100% { transform: scale(0); } }
