.upload-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.75);
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.25s ease;
padding: 20px;
}
.upload-modal-overlay.show {
opacity: 1;
pointer-events: all;
}
.upload-modal-content {
background: #1e2433;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 14px;
width: 100%;
max-width: 420px;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
transform: translateY(20px) scale(0.98);
transition: transform 0.25s ease;
}
.upload-modal-overlay.show .upload-modal-content {
transform: translateY(0) scale(1);
}
.upload-modal-content.closing {
transform: translateY(20px) scale(0.98);
}
.upload-modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 16px;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.upload-modal-header h3 {
font-size: 15px;
font-weight: 600;
color: white;
margin: 0;
display: flex;
align-items: center;
gap: 8px;
}
.upload-modal-header h3 i {
color: #4a9eff;
font-size: 18px;
}
.upload-modal-close {
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.5);
font-size: 16px;
cursor: pointer;
padding: 4px;
display: flex;
border-radius: 6px;
transition: all 0.2s;
}
.upload-modal-close:hover {
background: rgba(255, 255, 255, 0.08);
color: white;
}
.upload-modal-body {
padding: 14px 16px;
display: flex;
flex-direction: column;
gap: 12px;
}
.upload-row {
display: flex;
gap: 10px;
}
.upload-form-group {
display: flex;
flex-direction: column;
gap: 6px;
}
.upload-form-group.flex-1 {
flex: 1;
}
.upload-form-group label {
font-size: 12px;
font-weight: 500;
color: rgba(255, 255, 255, 0.7);
display: flex;
align-items: center;
gap: 6px;
}
.char-count, .file-limit {
font-size: 10px;
color: rgba(255, 255, 255, 0.35);
font-weight: 400;
}
.upload-form-group input[type="text"],
.upload-form-group textarea {
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
padding: 10px 12px;
color: white;
font-size: 13px;
transition: all 0.2s;
resize: none;
}
.upload-form-group input[type="text"]:focus,
.upload-form-group textarea:focus {
outline: none;
border-color: rgba(74, 158, 255, 0.5);
background: rgba(74, 158, 255, 0.05);
}
.upload-form-group input::placeholder,
.upload-form-group textarea::placeholder {
color: rgba(255, 255, 255, 0.3);
}

.tag-dropdown-wrapper {
position: relative;
}
.tag-dropdown-btn {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
width: 100%;
min-width: 110px;
padding: 10px 12px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
color: rgba(255, 255, 255, 0.5);
font-size: 13px;
cursor: pointer;
transition: all 0.2s;
}
.tag-dropdown-btn:hover {
background: rgba(255, 255, 255, 0.06);
border-color: rgba(255, 255, 255, 0.15);
}
.tag-dropdown-btn.selected {
color: white;
}
.tag-dropdown-btn i {
font-size: 10px;
transition: transform 0.2s;
}
.tag-dropdown-wrapper.open .tag-dropdown-btn i {
transform: rotate(180deg);
}
.tag-dropdown-menu {
position: absolute;
top: calc(100% + 4px);
left: 0;
right: 0;
background: #1a1f2e;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 8px;
padding: 4px;
max-height: 180px;
overflow-y: auto;
opacity: 0;
visibility: hidden;
transform: translateY(-6px);
transition: all 0.2s;
z-index: 100;
}
.tag-dropdown-wrapper.open .tag-dropdown-menu {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.tag-option {
padding: 8px 10px;
border-radius: 6px;
color: rgba(255, 255, 255, 0.7);
font-size: 12px;
cursor: pointer;
transition: all 0.15s;
}
.tag-option:hover {
background: rgba(255, 255, 255, 0.06);
color: white;
}
.tag-option.active {
background: rgba(74, 158, 255, 0.15);
color: #4a9eff;
}
.upload-dropzone {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
padding: 16px;
background: rgba(255, 255, 255, 0.02);
border: 2px dashed rgba(255, 255, 255, 0.1);
border-radius: 10px;
cursor: pointer;
transition: all 0.2s;
}
.upload-dropzone.compact {
padding: 12px;
min-height: 70px;
}
.upload-dropzone:hover {
background: rgba(255, 255, 255, 0.04);
border-color: rgba(74, 158, 255, 0.3);
}
.upload-dropzone.dragover {
background: rgba(74, 158, 255, 0.08);
border-color: #4a9eff;
}
.upload-dropzone.has-file {
border-style: solid;
border-color: rgba(74, 158, 255, 0.4);
background: rgba(74, 158, 255, 0.05);
}
.upload-dropzone i {
font-size: 22px;
color: rgba(255, 255, 255, 0.25);
}
.upload-dropzone.has-file i {
color: #4a9eff;
}
.dropzone-text {
font-size: 11px;
color: rgba(255, 255, 255, 0.35);
}
.dropzone-file {
font-size: 11px;
color: #4a9eff;
font-weight: 500;
display: none;
text-align: center;
word-break: break-all;
}
.upload-dropzone.has-file .dropzone-text {
display: none;
}
.upload-dropzone.has-file .dropzone-file {
display: block;
}
.preview-dropzone {
position: relative;
overflow: hidden;
aspect-ratio: 16/9;
min-height: auto;
padding: 0;
}
.preview-dropzone:not(.has-file) {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
}
.preview-thumb {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 8px;
display: none;
}
.preview-dropzone.has-file .preview-thumb {
display: block;
}
.preview-dropzone.has-file i,
.preview-dropzone.has-file .dropzone-text {
display: none;
}

.upload-modal-footer {
display: flex;
gap: 10px;
padding: 12px 16px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.upload-btn-cancel {
flex: 1;
padding: 10px;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
color: rgba(255, 255, 255, 0.8);
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
}
.upload-btn-cancel:hover {
background: rgba(255, 255, 255, 0.1);
color: white;
}
.upload-btn-submit {
flex: 1;
padding: 10px;
background: #4a9eff;
border: none;
border-radius: 8px;
color: white;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
}
.upload-btn-submit:hover:not(:disabled) {
background: #3a8eef;
}
.upload-btn-submit:disabled {
opacity: 0.5;
cursor: not-allowed;
}
@media (max-width: 540px) {
.upload-modal-overlay {
padding: 0;
align-items: flex-end;
}
.upload-modal-content {
max-width: none;
max-height: 95vh;
border-radius: 16px 16px 0 0;
transform: translateY(100%);
}
.upload-modal-overlay.show .upload-modal-content {
transform: translateY(0);
}
.upload-modal-content.closing {
transform: translateY(100%);
}
.upload-row {
flex-direction: column;
gap: 12px;
}
}

.confirm-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
z-index: 10001;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease;
padding: 20px;
}
.confirm-modal-overlay.show {
opacity: 1;
pointer-events: all;
}
.confirm-modal-content {
background: #1e2433;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px;
padding: 24px;
text-align: center;
max-width: 320px;
width: 100%;
transform: scale(0.9);
transition: transform 0.2s ease;
}
.confirm-modal-overlay.show .confirm-modal-content {
transform: scale(1);
}
.confirm-modal-icon {
width: 56px;
height: 56px;
background: rgba(239, 68, 68, 0.15);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 16px;
}
.confirm-modal-icon i {
font-size: 24px;
color: #ef4444;
}
.confirm-modal-title {
font-size: 18px;
font-weight: 600;
color: white;
margin: 0 0 8px;
}
.confirm-modal-text {
font-size: 13px;
color: rgba(255, 255, 255, 0.5);
margin: 0 0 20px;
}
.confirm-modal-btns {
display: flex;
gap: 10px;
}
.confirm-btn-cancel, .confirm-btn-delete {
flex: 1;
padding: 12px;
border-radius: 10px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
border: none;
}
.confirm-btn-cancel {
background: rgba(255, 255, 255, 0.08);
color: rgba(255, 255, 255, 0.8);
}
.confirm-btn-cancel:hover {
background: rgba(255, 255, 255, 0.12);
color: white;
}
.confirm-btn-delete {
background: #ef4444;
color: white;
}
.confirm-btn-delete:hover {
background: #dc2626;
}
.confirm-btn-delete:disabled {
opacity: 0.6;
cursor: not-allowed;
}
