.gestion-tdco-images {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.upload-section, .images-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.upload-section h3, .images-section h3 {
    margin: 0 0 20px;
    color: #1d2327;
    font-size: 1.3em;
    font-weight: 600;
}

.image-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e4e7;
}

.image-upload-area {
    border: 2px dashed #b4b9be;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 20px;
}

.image-upload-area.dragover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.image-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drag-drop-text {
    color: #50575e;
}

.drag-drop-text i {
    font-size: 48px;
    color: #2271b1;
    margin-bottom: 15px;
}

.drag-drop-text p {
    margin: 10px 0;
    font-size: 1.1em;
}

.file-limits {
    font-size: 0.9em;
    color: #757575;
    margin-top: 10px;
}

.or-text {
    color: #757575;
    font-size: 0.9em !important;
}

.select-image {
    background: #f0f0f1;
    border: 1px solid #8c8f94;
    color: #2c3338;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-image:hover {
    background: #e5e5e5;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.preview-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.preview-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.preview-item:hover .preview-controls {
    transform: translateY(0);
}

.caption-input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.remove-image {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9em;
}

.remove-image:hover {
    background: #c82333;
}

.error-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.error-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.error-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.progress-container {
    margin: 20px 0;
    background: #f0f0f1;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 20px;
    background: #2271b1;
    width: 0;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    padding: 5px;
    font-size: 0.9em;
    color: #50575e;
}

.upload-button {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upload-button i {
    font-size: 20px;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.image-item {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-preview {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: #f8f9fa;
}

.image-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-item:hover .image-preview img {
    transform: scale(1.05);
}

.image-info {
    padding: 15px;
}

.image-caption {
    margin: 0 0 10px;
    font-weight: 500;
    color: #1d2327;
    font-size: 1.1em;
}

.image-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #646970;
}

.image-date {
    color: #757575;
}

.delete-image {
    color: #d63638;
    border-color: #d63638;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.delete-image:hover {
    background: #d63638;
    color: #fff;
}

.no-images {
    text-align: center;
    color: #646970;
    grid-column: 1 / -1;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #b4b9be;
}

.no-images i {
    font-size: 48px;
    color: #b4b9be;
    margin-bottom: 15px;
}

.no-images p {
    margin: 0;
    font-size: 1.1em;
} 