/* General Styles */
.workcard-overview-page {
    font-family: 'Roboto', Arial, sans-serif;
    padding: 40px;
    margin: auto;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
.workcard-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 10px;
}

.workcard-overview-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.workcard-overview-back-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.workcard-overview-back-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Section Styles */
.workcard-overview-section {
    margin-bottom: 30px;
}

/* Duration Section */
.workcard-overview-duration-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.workcard-overview-form-group {
    display: flex;
    flex-direction: column;
}

.workcard-overview-form-group label {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.workcard-overview-input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 1rem;
    color: #333;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
}

.workcard-overview-input:focus {
    border-color: #007bff;
    outline: none;
}

/* Summary Section */
.workcard-overview-summary-section label {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    color: #555;
}

.workcard-overview-textarea {
    width: 100%;
    height: 150px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    font-size: 1rem;
    background-color: #f9f9f9;
    color: #333;
    resize: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
}

.workcard-overview-textarea:focus {
    border-color: #007bff;
    outline: none;
}

/* File List Section */
.workcard-overview-files-section {
    margin-top: 20px;
}

.workcard-overview-subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.workcard-overview-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.workcard-overview-file-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #333;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.workcard-overview-icon-file {
    background: url('/path/to/icon-file.svg') no-repeat center;
    width: 20px;
    height: 20px;
    display: inline-block;
}

/* User File Listing Section */
.workcard-overview-user-file-list {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    background-color: #f9f9f9;
}

.workcard-overview-user-files-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.user-files-list {
    list-style: none;
    padding: 0;
}

.user-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.user-file-item:last-child {
    border-bottom: none;
}

.user-file-item span {
    font-size: 1rem;
    color: #555;
}

.user-file-item a {
    color: #007bff;
    text-decoration: none;
    margin-right: 10px;
}

.user-file-item button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.user-file-item button:hover {
    background-color: #c82333;
}

/* File Upload Area */
#fileUploadArea {
    text-align: center;
    border: 2px dashed #007bff;
    padding: 30px;
    border-radius: 10px;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    position: relative;
    cursor: pointer;
}

/* Drag Over Effect */
#fileUploadArea.drag-over {
    background-color: #e3f7e9;
    border-color: #28a745;
    transform: scale(1.05);
}

/* File Upload Icon */
#fileUploadArea i {
    font-size: 40px;
    color: #007bff;
}

/* File Upload Instructions */
#fileUploadArea p {
    color: #555;
    font-size: 1rem;
}

/* User Files List */
#userFiles {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.user-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

.user-file-item span {
    font-size: 1rem;
    color: #333;
}

.user-file-item a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 10px;
}

.user-file-item button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.user-file-item button:hover {
    background-color: #c82333;
}

/* Footer Styles */
.workcard-overview-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.workcard-overview-footer .workcard-overview-back-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.workcard-overview-footer .workcard-overview-back-btn:hover {
    background-color: #5a6268;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.workcard-overview-footer .workcard-overview-save-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.workcard-overview-footer .workcard-overview-save-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}