/* UNIFIED MODAL SYSTEM - Create New Team Modal Stilinde */

/* Modal Overlay */
.custom-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;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.custom-modal {
    background: #2a2a3e;
    border-radius: 20px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(240, 147, 251, 0.1);
}

.custom-modal-overlay.active .custom-modal {
    transform: scale(1);
}

/* Modal Header */
.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.custom-modal-title {
    font-size: 22px;
    color: #fff;
    font-weight: 600;
    /*background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);*/
    /*background: linear-gradient(135deg, #feba2b 0%, #ff2b87 100%);*/
    background: linear-gradient(135deg, #feba2b 0%, #ff782b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.custom-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.custom-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.custom-modal-close svg {
    width: 20px;
    height: 20px;
    stroke: #9ca3af;
}

/* Form Elements */
.custom-form-group {
    margin-bottom: 20px;
}

.custom-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.custom-form-input,
.custom-form-textarea,
.custom-form-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.custom-form-input:focus,
.custom-form-textarea:focus,
.custom-form-select:focus {
    outline: none;
    border-color: rgba(240, 147, 251, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.1);
}

.custom-form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* Color Picker */
input[type="color"].custom-form-input {
    padding: 4px;
    height: 50px;
    cursor: pointer;
}

/* Avatar Selector */
.custom-avatar-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.custom-avatar-option {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.custom-avatar-option:hover {
    transform: scale(1.1);
}

.custom-avatar-option.selected {
    border-color: #f093fb;
    box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.2);
}

/* Member Tags */
.custom-members-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.custom-member-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(240, 147, 251, 0.1);
    border: 1px solid rgba(240, 147, 251, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: #fff;
}

.custom-member-remove {
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    border: none;
    color: #fff;
}

.custom-member-remove:hover {
    background: rgba(245, 87, 108, 0.5);
}

/* Suggestions Dropdown */
.custom-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1f1f35;
    border-radius: 10px;
    margin-top: 4px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 150px;
    overflow-y: auto;
    display: none;
    z-index: 10;
    border: 1px solid rgba(240, 147, 251, 0.1);
}

.custom-suggestions-dropdown.active {
    display: block;
}

.custom-suggestion-item {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #b0b0b0;
    font-size: 13px;
}

.custom-suggestion-item:hover {
    background: rgba(240, 147, 251, 0.1);
    color: #fff;
}

/* Modal Footer */
.custom-modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.custom-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-btn-cancel,
.custom-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-btn-cancel:hover,
.custom-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.custom-btn-create,
.custom-btn-primary {
    /*background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);*/
    background: linear-gradient(135deg, #feba2b 0%, #fe6e2b 50%, #fe2be3 100%);
    color: #fff;
}

.custom-btn-create:hover,
.custom-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3);
}

/* Scrollbar */
.custom-suggestions-dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-suggestions-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.custom-suggestions-dropdown::-webkit-scrollbar-thumb {
    background: rgba(240, 147, 251, 0.3);
    border-radius: 3px;
}

.custom-suggestions-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(240, 147, 251, 0.5);
}