/***************************************************************************************/
/* upload-process.css */
/* Systling for upload process, incl. frame start, upload, progress, record, save */
/***************************************************************************************/

/***************************************************************************************/
/* 0.) upload-box */
/***************************************************************************************/

/* Entire upload box */
.upload-box {
    width: 300px;
    height: 450px;
    border: 2px solid #000000;
    background-color: #FFFFFF;
    position: relative; /* Ausrichtung relativ zur box nicht zum body */
    overflow: hidden; /* alles außerhalb der box wird abgeschnitten */
    font-size: 18px;
    background-color: #ffffff;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 2px solid lightgray;
}

/* Drag-over effect */
.upload-box.drag-over {
    border: 3px solid #000000;
}

/* For all frames (start, upload, progress, record, save) = hidden */
.frame {
    display: none; /* hidden */
    width: 100%; /* Füllt die gesamte Breite der upload-box */
    height: 100%; /* Füllt die gesamte Höhe der upload-box */
    position: absolute; /* Stapelt die Frames übereinander */
    top: 0; left: 0; /* Ausrichtung aller Frames immer oben links */
    padding: 0px; /* unnötig aber schicker */
    text-align: center;
}

/* For selected frame = visble */
.frame.active {
    display: block; /* visible */
}

/* Drag icon + */
#drag-plus {
    position: fixed;
    pointer-events: none;
    z-index: 999999;
    font-size: 40px;
    font-weight: bold;
    color: #000000;
    pointer-events: none;
    opacity: 0.9;
    display: none;
}

/***************************************************************************************/
/* 1.) start-frame */
/***************************************************************************************/

/* drag & drop text */
#drag-drop-text {
    margin-top: 140px;
    text-align: center;
    font-size: 20px;
}

/* General settings - for all "(+) Dateien hinzufügen" buttons */
.file-button { 
    /* by class */
    width: 200px;
    height: 34px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
    position: absolute; 
    left: 50%;
    transform: translateX(-50%); 
    background-color: #FFFFFF !important;
    border: 2px solid #B8B9B4 !important;
    color: #3D3D3D !important;
}

/* Hover - for all "(+) Dateien hinzufügen" buttons */
.file-button:hover {
    border: 2px solid #000000 !important;
}

/* (+) Style - for all "(+) Dateien hinzufügen" buttons */
.file-button span {
    /* (+) */
    width: 16px;
    height: 16px;
    background-color: #646768;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 500;
    margin-right: 8px;
}

/* (+) Style hover - for all "(+) Dateien hinzufügen" buttons */
.file-button:hover span {
    /* (+) */
    background-color: #000000;
}

/* (+) Dateien hinzufügen */
#start-frame-file-button { 
    /* by id */
    bottom: 30px;
}

/***************************************************************************************/
/* 2.) upload-frame | top */
/***************************************************************************************/

/* For summary view line */
.summary-view {
    /* by class */
    margin-top: 20px !important;
    text-align: left !important;
    margin-left: 20px !important;
    font-size: 16px !important;
}

/* X Dateien */
#summary-files {
    /* by id */
    font-weight: bold; 
    color: black; 
}

/* (X MB) */
#summary-size {
    /* by id */
    font-weight: normal; 
    color: #B8B9B4;
}

/***************************************************************************************/
/* upload-frame | file list */
/***************************************************************************************/

/* For all items in file list */
.file-list-view {
    list-style: none;
    padding: 0px 10px 0px 0px; 
    width: calc(100% - 40px);
    max-height: 280px;
    overflow-y: auto;
    text-align: left;
    font-size: 14px;
    margin-left: 20px;
    margin-right: 0px;
    position: absolute;
    top: 50px;
    /* left: 0; */
    /* width: 100%; */
    scrollbar-width: thin; 
    scrollbar-color: #8E8E8C lightgray;
}

/* Scrollbar hover style */
.file-list-view:hover {
    scrollbar-color: #3D3D3D lightgray;
}

/* Scrollbar active style */
.file-list-view:active {
    scrollbar-color: #000000 lightgray;
}


/* For all LI items in file list */
.file-list-view li {
    display: flex;
    flex-wrap: wrap; /* Erlaubt Umbruch auf neue Zeile */
    align-items: center; /* Zentriert Elemente vertikal */
    margin-top: 8px;
    margin-bottom: 8px;
    width: 100%;
}

/* File name style */
.span-file-name {
    position: relative;
    cursor: help;
    max-width: 210px; /* reduziert von 220px */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1; /* Nimmt verfügbaren Platz ein */
}

/* Error message style */
.span-file-error {
    color: red;
    /* cursor: help; */ /* Tooltip deaktivated */
    width: 100%; /* Erzwingt neue Zeile */
    text-align: left;
    margin-top: 4px;
    order: 1; 
    font-size: 14px;
    font-weight: 300;

}

/* Delete button style */
.span-delete-button {
    font-weight: bold;
    cursor: pointer;
    /* display: none; */ 
    display: inline; /* hoover deaktivated */
    margin-left: 10px;
}

/* Delete button hover style */
.file-list-view li:hover .span-delete-button {
    display: inline;
}

/* Changed style of LI when error */
.file-list-view .span-file-name.error {
    color: red;
    text-decoration: line-through;
}

.file-list-view .span-delete-button.error {
    color: red;
}


/***************************************************************************************/
/* 2.) upload-frame | bottom */
/***************************************************************************************/

/* For all normal buttons */
.button {
    width: 200px;
    height: 34px;
    font-size: 14px;
    border-radius: 5px;
    align-items: center !important;
    justify-content: center !important;
}

/* (+) Dateien hinzufügen */
#upload-frame-file-button {
    bottom: 60px;
}

/* Hochladen Button */
#upload-frame-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/***************************************************************************************/
/* progress-frame | file list */
/***************************************************************************************/

/* Progresse cycle container */
.progress-cycle-container {
    width: 180px;
    height: 180px;
    margin: 60px auto;
    position: relative;
    display: none;
}
  
#progress-frame.active .progress-cycle-container {
    display: block;
}
  
/* Progress cycle with dynamic gap */
.progress-cycle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
      /* Schwarzer Fortschrittsring (startet bei 0°) */
      conic-gradient(#000000 0deg, #0000 0deg),
      /* Hellgrauer Hintergrund (bleibende Lücke) */
      conic-gradient(#CCCCCC 0deg, #0000 0deg);
    mask: radial-gradient(transparent 65%, #000 66%);
    animation: spin 1.5s linear infinite;
    animation-play-state: paused;
}

/* Progress cycle spin */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/***************************************************************************************/
/* XX % */
#progress-percent {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: bold;
    color: #000000;
    text-align: center;
}

/* X Dateien (X MB) */
#progress-files {
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    text-align: center;
}

/* X Minuten verbleibend */
#progress-time {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    font-size: 16px;
    font-weight: normal;
    color: #000000;
    text-align: center;
}

/* Abbrechen Button */
#progress-frame-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}


/***************************************************************************************/
/* record-frame */
/***************************************************************************************/

/* Was ist das Besondere .. */
#record-line-one {
    position: absolute;
    margin-top: 20 !important;
    top: 18px;
    left: 0;
    right: 0;
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    text-align: center;
    line-height: 1.3;
}

/* Wie würden Sie .. erklären */
#record-line-two {
    position: absolute;
    margin-top: 80px;
    left: 0;
    right: 0;
    font-size: 16px;
    font-weight: 600;
    color:  #646768;
    text-align: center;
    line-height: 1.3;
}

/***************************************************************************************/

/* DIV element for microphon Button */
.mic-button-container {
    position: absolute;
    top: 84px; /* Abstand von oben */
    left: 50%; /* Mitte der Upload-Box */
    transform: translateX(-50%); /* tatsächliche horizontale Zentrierung */
    width: 200px;
    height: 200px;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Microphone button */
.mic-button {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    background: #3D3D3D;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    position: relative;
    transition: all 0.3s ease;
    /* Schatten um den Button (Kreis) im Ruhezustand */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);

    /* prevent unwanted mobile events */
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;

}

/* deactivate pointer event for mobile use */
.mic-button img {
    pointer-events: none;
}

/* deactivate outer button line for mobile use */
.mic-button:active, .mic-button:focus {
    outline: none;
}

.mic-button:hover, .mic-button.active {
    background: #000000;
    /* Vergrößerung und dunklerer Schatten bei Hover/Aktiv */
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.mic-button img {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

/* Button animation with waves */
.mic-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px; /* Zentrierung korrigieren */
    border-radius: 50%;
    background: rgba(80, 80, 80, 0.3);
    transform: scale(0);
    opacity: 1;
    pointer-events: none;
    z-index: 5; /* Unter dem Button */
    animation: mic-wave 1.5s ease-out forwards;
    box-sizing: border-box;
}

/* Wave style */
@keyframes mic-wave {
    0% { 
        transform: scale(0.5);
        opacity: 0.7; 
    }
    100% { 
        transform: scale(3.5); /* size of wave-circles */
        opacity: 0; 
    }
}

/***************************************************************************************/

/* gedrückt halten */
#record-line-three {
    position: absolute;
    bottom: 170px;
    left: 0;
    right: 0;
    font-size: 14px;
    /* 400 normal, 700 bold */
    font-weight: 600;
    color: #646768;
    text-align: center;
}

/* zum Sprechen */
#record-line-four {
    position: absolute;
    bottom: 150px;
    left: 0;
    right: 0;
    font-size: 14px;
    font-weight: normal;
    color: #646768;
    text-align: center;
}

/***************************************************************************************/

/* Amplitude visualising recording */
#record-amplitude {
    display: none;
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    width: 200px;
    height: 100px;
    margin: 0 auto; /* Neue Zentrierungsmethode */
}

/* Amplitude only visible during recording */
#record-amplitude.visible {
    display: block;
}


/* Weiter Button */
#record-frame-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}


/***************************************************************************************/
/* save-frame */
/***************************************************************************************/

/* E-Mail zum speichern */
#save-line-one {
    margin-top: 120px;
    position: absolute;
    left: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    text-align: left;
}

/* E-Mail input field */
#email-address { 
    position: absolute; 
    top: 160px; 
    left: 20px;
    right: 20px; 
    width: calc(100% - 40px); 
    padding: 8px 12px; /* Für bessere Textdarstellung */
    border: 1px solid #B8B9B4; 
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box; /* Wichtig für korrekte Breitenberechnung */
}
  
/* E-Mail placeholder style */
#email-address::placeholder { 
    color: #B8B9B4; 
    opacity: 1; /* Wichtig für Firefox */
}

#email-address:focus {
    outline: none !important;
    border: 1px solid black !important;
}

/* error notification */
#email-address-error {
    position: absolute;
    top: 210px;
    color: red;
    font-size: 14px;
    font-weight: normal;
    left: 20px; 
 }


/***************************************************************************************/

/* Checkbox style */
#save-checkbox { 
    bottom: 90px;
    position: absolute; 
    left: 20px;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    /* border: 1px solid #B8B9B4 !important; */
    background-color:#FFFFFF !important;
    cursor: pointer;
    appearance: none; /* remove standard styling */
    -webkit-appearance: none; /* for Safari */
}

#save-checkbox:checked {
    background-color: #FFFFFF !important;
}

/* #save-checkbox:hover {
    border: 1px solid #000000 !important;
    background-color: #FFFFFF !important;
} */


/* checkbox normal style */
.save-checkbox-normal {
    border: 1px solid #B8B9B4 !important;
}

/* checkbox normal style */
.save-checkbox-normal:hover {
    border: 1px solid #000000 !important;
    background-color: #FFFFFF !important;
}


/* checkbox error style */
.save-checkbox-error {
    border: 2px solid red !important;
}

/* checkbox error style */
.save-checkbox-error:hoover {
    border: 2px solid red !important;
    background-color: #FFFFFF !important;
}

/* Checkox tick style */
#save-checkbox:checked::after {
    content: "✓";
    font-weight: 600;
    color: #000000; /* tick color */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
}

/***************************************************************************************/

/* Ich stimme der Speicherung meiner Daten zu */
#save-line-two {
    bottom: 55px; 
    position: absolute;
    left: 50px;
    width: 220px; 
    font-size: 16px;
    font-weight: 400; 
    color: #646768;
    line-height: 1.3;
    text-align: left;
}

/* Weiter Button */
#save-frame-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}




/***************************************************************************************/