/* Variables for Siemens color theme */
:root {
    --siemens-corporate-blue: #003366; /* Deep blue for header, CTAs */
    --siemens-light-gray: #f0f0f0;    /* Background gray */
    --siemens-white: #ffffff;         /* Card backgrounds, text */
    --siemens-dark-gray: #333333;     /* Main text color */
    --siemens-medium-gray: #cccccc;   /* Borders, subtle elements */
    --siemens-accent-turquoise: #009999; /* For highlights, progress */
 
    --shadow-light: 0 4px 10px rgba(0,0,0,0.08);
    --shadow-medium: 0 6px 15px rgba(0,0,0,0.12);
 
    --border-radius-card: 12px;
    --border-radius-elements: 8px;
 
    --font-family-primary: 'Open Sans', 'Roboto', Arial, sans-serif;
}
 
/* General Body Styles */
body {
    font-family: var(--font-family-primary);
    margin: 0;
    padding: 0;
    background-color: var(--siemens-light-gray);
    color: var(--siemens-dark-gray);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
 
/* Header */
header {
    background-color: var(--siemens-corporate-blue);
    color: var(--siemens-white);
    padding: 1.8rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-medium);
}
 
header h1 {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 700;
}
 
header .tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}
 
/* Main Container */
.container {
    max-width: 960px;
    margin: 2.5rem auto;
    padding: 1.2rem;
    flex-grow: 1;
}
 
/* Card Styles */
.card {
    background-color: var(--siemens-white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease-in-out;
}
 
.card:hover {
    transform: translateY(-3px);
}
 
.section-title {
    color: var(--siemens-corporate-blue);
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 600;
    border-bottom: 3px solid var(--siemens-accent-turquoise);
    padding-bottom: 0.8rem;
}
 
/* Drag and Drop Area */
.drag-drop-area {
    border: 3px dashed var(--siemens-medium-gray);
    border-radius: var(--border-radius-card);
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(0, 153, 153, 0.03); /* Very light tint of turquoise */
}
 
.drag-drop-area:hover,
.drag-drop-area.drag-over {
    border-color: var(--siemens-accent-turquoise);
    background-color: rgba(0, 153, 153, 0.08);
}
 
.drag-drop-area p {
    margin-bottom: 1.5rem;
    color: var(--siemens-dark-gray);
    font-size: 1.2rem;
    font-weight: 500;
}
 
/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius-elements);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
 
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
 
.btn-primary {
    background-color: var(--siemens-accent-turquoise);
    color: var(--siemens-white);
    box-shadow: 0 4px 8px rgba(0, 153, 153, 0.3);
}
 
.btn-primary:not(:disabled):hover {
    background-color: #007a7a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 153, 153, 0.4);
}
 
.btn-cta {
    background-color: var(--siemens-corporate-blue);
    color: var(--siemens-white);
    box-shadow: 0 4px 8px rgba(0, 51, 102, 0.3);
}
 
.btn-cta:not(:disabled):hover {
    background-color: #002244;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 51, 102, 0.4);
}
 
.btn-secondary {
    background-color: var(--siemens-medium-gray);
    color: var(--siemens-dark-gray);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
 
.btn-secondary:not(:disabled):hover {
    background-color: #b3b3b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
 
.button-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
 
/* File List Container */
.file-list-container {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--siemens-medium-gray);
}
 
.file-list-container h3 {
    font-size: 1.6rem;
    color: var(--siemens-corporate-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}
 
.uploaded-files {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
 
.file-item {
    background-color: var(--siemens-white);
    border: 1px solid var(--siemens-medium-gray);
    border-radius: var(--border-radius-elements);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    color: var(--siemens-dark-gray);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s ease-in-out;
    cursor: grab;
    user-select: none;
}
 
.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
 
.file-item.dragging {
    opacity: 0.5;
    background-color: rgba(0, 153, 153, 0.1);
    box-shadow: 0 8px 16px rgba(0, 153, 153, 0.3);
}
 
.file-item.drag-over {
    border: 2px solid var(--siemens-accent-turquoise);
    box-shadow: 0 0 10px rgba(0, 153, 153, 0.5);
}
 
.file-item-info {
    flex-grow: 1;
    margin-left: 1rem; /* Space for drag handle */
}
 
.file-item-name {
    font-weight: 600;
    color: var(--siemens-corporate-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%; /* Prevent name from pushing other elements too much */
}
 
.file-item-meta {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.2rem;
}
 
.drag-handle {
    cursor: grab;
    font-size: 1.5rem;
    color: var(--siemens-medium-gray);
    transition: color 0.2s ease;
    padding-right: 1rem;
}
 
.drag-handle:hover {
    color: var(--siemens-accent-turquoise);
}
 
.remove-file-btn {
    background: none;
    border: none;
    color: #cc0000;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}
 
.remove-file-btn:hover {
    color: #ff0000;
    transform: scale(1.1);
}
 
/* Result Section */
.result-actions {
    text-align: center;
    margin-top: 1.5rem;
}
 
/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* For Safari */
}
 
.spinner {
    border: 8px solid var(--siemens-light-gray);
    border-top: 8px solid var(--siemens-accent-turquoise);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}
 
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
 
.loading-overlay p {
    font-size: 1.5rem;
    color: var(--siemens-corporate-blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
}
 
.progress-bar-container {
    width: 80%;
    max-width: 400px;
    background-color: var(--siemens-medium-gray);
    border-radius: 5px;
    height: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
}
 
.progress-bar {
    height: 100%;
    background-color: var(--siemens-accent-turquoise);
    width: 0%;
    border-radius: 5px;
    transition: width 0.3s ease-out;
}
 
.progress-text {
    font-size: 1.1rem;
    color: var(--siemens-dark-gray);
}
 
/* Notifications */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column-reverse; /* New notifications appear on top */
    gap: 12px;
}
 
.notification {
    padding: 1.2rem 1.8rem;
    border-radius: var(--border-radius-elements);
    color: var(--siemens-white);
    font-weight: bold;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.5s forwards, fadeOut 0.5s forwards 4.5s; /* Fade in, then fade out after 4.5s (total 5s display) */
}
 
.notification.success {
    background-color: #28a745; /* Green */
}
 
.notification.error {
    background-color: #dc3545; /* Red */
}
 
@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
 
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
 
/* Utility Class */
.hidden {
    display: none !important;
}
 
/* Footer */
footer {
    text-align: center;
    padding: 1.8rem 1rem;
    background-color: var(--siemens-corporate-blue);
    color: var(--siemens-white);
    margin-top: 3rem;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}
 
/* Mobile Responsiveness */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }
    header .tagline {
        font-size: 1rem;
    }
 
    .container {
        margin: 1.5rem auto;
        padding: 0.8rem;
    }
 
    .card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
 
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
 
    .drag-drop-area {
        padding: 3rem 1.5rem;
    }
 
    .drag-drop-area p {
        font-size: 1.1rem;
    }
 
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
        width: 100%; /* Full width buttons on small screens */
    }
 
    .button-group {
        flex-direction: column;
        gap: 1rem;
    }
 
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
    }
 
    .file-item-info {
        margin-left: 0;
        width: 100%;
        text-align: left;
    }
 
    .drag-handle {
        align-self: flex-end;
        margin-left: auto; /* Push to right */
        padding-right: 0;
    }
    .remove-file-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        margin-left: 0;
    }
 
    .loading-overlay p {
        font-size: 1.2rem;
    }
 
    .spinner {
        width: 50px;
        height: 50px;
        border-width: 6px;
    }
 
    .progress-bar-container {
        width: 90%;
    }
 
    #notification-container {
        bottom: 10px;
        right: 10px;
        left: 10px; /* Make notifications full width on small screens */
    }
 
    .notification {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
    }
}
 