/* General styles for the file upload interface */
body {
    background-color: #f8f9fa;
}

.drop-zone {
    cursor: pointer;
    text-align: center;
    background-color: #e9ecef;
    color: #6c757d;
    font-size: 18px;
    padding: 20px;
}

#filePreview {
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    padding: 10px;
    background-color: #ffffff;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.file-item .file-icon {
    margin-right: 10px;
}

.file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-container {
    flex: 2;
    display: flex;
    justify-content: center;
}

.progress {
    width: 100%; /* Full width within its container */
}

.progress-bar {
    width: 0;
    transition: width 0.6s ease;
}

.btn.remove-file {
    margin-left: 10px;
}

.card {
    margin-bottom: 20px;
}

.delete-log {
    cursor: pointer;
    color: red;
    font-weight: bold;
}

.table th, .table td {
    border: 1px solid #dee2e6;
    padding: 8px;
    text-align: left;
}

.table th {
    background-color: #f8f9fa;
}

.modal-header {
    background-color: #28a745;
    color: #fff;
}

.modal-footer .btn-primary {
    background-color: #28a745;
}

/* Manage Files Tab */
#fileManagerContent .file-item {
    padding: 8px;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
}

#fileManagerContent .file-item:hover {
    background-color: #f1f1f1;
}

.file-icon {
    margin-right: 10px;
}

.file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    margin-right: 10px;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.file-actions .btn {
    padding: 4px 8px;
    font-size: 14px;
}

/* Progress Tracker Styles */
.progress-tracker {
    width: 100%;
    margin-bottom: 20px;
}

.progress-step {
    text-align: center;
    flex-grow: 1;
    position: relative;
}

.progress-dot {
    width: 30px;
    height: 30px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: inline-block;
    line-height: 30px;
    color: #6c757d;
    font-weight: bold;
}

.progress-line {
    height: 4px;
    background-color: #e9ecef;
    flex-grow: 1;
}

.progress-step p {
    margin-top: 10px;
    font-size: 14px;
    color: #6c757d;
}

.progress-dot.active {
    background-color: #007bff;
    color: #fff;
}

.progress-line.active {
    background-color: #007bff;
}
/* Styling for the Generate Patchlist Button */
#generatePatchlistButton {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 16px;
    padding: 10px 20px;
}

#generatePatchlistButton:hover {
    background-color: #007bff;
    color: white;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

#generatePatchlistButton:active {
    background-color: #0056b3;
    box-shadow: none;
}

/* Style for the patchlist container */
.patchlist-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Card styling */
#patchlistDetails {
    border-radius: 10px;
    background-color: #f8f9fa;
}

#patchlistDetails .card-title {
    font-weight: 600;
    color: #007bff;
}

#patchlistContent {
    font-family: monospace;
    white-space: pre-wrap; /* Preserves whitespace and line breaks */
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    overflow-x: auto;
}

/* Highlight for the format explanation */
code {
    background-color: #e9ecef;
    padding: 2px 4px;
    border-radius: 4px;
}

/* Settings Tab */
.settings-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.settings-container h3 {
    text-align: center;
    color: #007bff;
    margin-bottom: 20px;
}

.instructions h5,
.downloads h5 {
    color: #007bff;
    margin-bottom: 10px;
}

.instructions p {
    margin-bottom: 10px;
}

.downloads {
    text-align: center;
}

.downloads .btn {
    width: 100%;
    margin-bottom: 10px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.downloads .btn:hover {
    background-color: #007bff;
    color: white;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.downloads .btn:active {
    background-color: #0056b3;
    box-shadow: none;
}

/* Style for Patchlist Info Tab */
#patchlistContainer {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#patchlistContainer h3 {
    text-align: center;
    color: #007bff;
    margin-bottom: 20px;
}
/* Additional styles to position the Settings tab */
.nav-tabs {
    display: flex;
    justify-content: space-between;
}
.nav-item.settings-tab {
    margin-left: auto;
}
.nav-item.settings-tab .nav-link {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #007bff;
}
.nav-item.settings-tab .nav-link:hover {
    background-color: #e9ecef;
    color: #0056b3;
}

#patchlistDetails .card-title {
    font-weight: 600;
    color: #007bff;
}

#patchlistDetails p {
    margin: 0;
}

#cleanPatchlistButton {
    margin-left: auto; /* Asigură poziționarea corectă în dreapta */
    white-space: nowrap;
    padding: 5px 10px;
    background-color: #ff4d4d; /* Culoare mai atractivă */
    border-color: #ff4d4d;
    color: white;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#cleanPatchlistButton:hover {
    background-color: #e60000; /* Culoare de hover */
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

#cleanPatchlistButton:active {
    background-color: #cc0000; /* Culoare activă */
    box-shadow: none;
}

