:root{
  /*  Colors */
  --typo-color-primary:#0E9493;
  --typo-color-secondary:#0A2540;
  --color-primary:#EF7310;
  --color-strock:#D4DEEB;
  --color-white:#ffffff;
  --color-black:#0A0C00;
  --light-orange:#FDF8F7;
  --mid-orange:#FCE3CF;
  --light-gray:#F1F5F9;
  --text-color:#404A62;
  --border-color:#E4DDD8;
  --light-ornage-border:#fdebde;
  --light-border:#3b3d33;
  --light-gray-border:#E6E6E6;
  --light-green-border:#0E949333;
  --red-color:rgb(241, 9, 9);
  --shadow-color:#ef73102e;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: var(--color-white);
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h5 {
    font-size: var(--font-18);
    font-weight: 700;
    color: var(--typo-secondary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close:hover:not(:disabled) {
    color: var(--color-primary);
}

.modal-close:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-body {
    padding: 25px 30px;
}

.upload-outer {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: var(--font-small);
    color: var(--typo-secondary);
}

.upload-area {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--color-primary);
    background: rgba(239, 115, 16, 0.02);
}

.preview-box {
    position: relative;
    display: inline-block;
}

.preview-image {
    border-radius: 12px;
    object-fit: cover;
    max-width: 200px;
    max-height: 200px;
}

.remove-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.remove-btn:hover:not(:disabled) {
    background: #c0392b;
    transform: scale(1.1);
}

.remove-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-placeholder p {
    font-size: var(--font-small);
    color: var(--typo-secondary);
    margin: 0;
}

.browse-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.browse-btn:hover:not(:disabled) {
    opacity: 0.8;
}

.browse-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.text-muted {
    color: var(--text-color);
    font-size: var(--font-xs);
}

.file-input {
    display: none;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.custom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-width: 100px;
}

.custom-btn.primary-fill {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.custom-btn.primary-fill:hover:not(:disabled) {
    background: transparent;
    color: var(--color-primary);
}

.custom-btn.secondary-outline {
    background: transparent;
    color: var(--text-color);
    border-color: var(--border-color);
}

.custom-btn.secondary-outline:hover:not(:disabled) {
    background: var(--border-color);
    color: var(--typo-secondary);
}

.custom-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 576px) {
    .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }

    .modal-header {
        padding: 15px;
    }

    .modal-body {
        padding: 15px;
    }

    .upload-area {
        padding: 30px 15px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .custom-btn {
        width: 100%;
    }
}