/* Modal Improvements for Better Information Display */

/* Better modal sizing and spacing */
.modal-content {
    max-width: 750px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    margin: 2rem auto;
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Better form spacing */
.form-group {
    margin-bottom: 2rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Better label spacing */
.form-label {
    margin-bottom: 0.8rem;
    display: block;
}

/* Better input spacing */
.form-control {
    margin-bottom: 0.5rem;
}

/* Better welcome info spacing */
.welcome-info {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(42, 52, 65, 0.3);
    border-radius: 15px;
    border-left: 4px solid #ff6b35;
}

.welcome-info h4 {
    margin-bottom: 1rem;
    color: #ff6b35;
    font-size: 1.4rem;
}

.welcome-info p {
    margin-bottom: 0;
    color: #c0c0c0;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Better error message spacing */
.error-message {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 15px;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Better user info spacing */
.user-info {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(42, 52, 65, 0.3);
    border-radius: 15px;
    border-left: 4px solid #4a9eff;
}

.user-info h4 {
    margin-bottom: 1rem;
    color: #4a9eff;
    font-size: 1.4rem;
}

/* Better form actions */
.form-actions {
    margin-top: 2.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 2px solid #2a3441;
}

/* Better search results positioning */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-top: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Better search result items */
.search-result-item {
    padding: 1.2rem;
    border-bottom: 1px solid #2a3441;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: rgba(255, 107, 53, 0.15);
    transform: translateX(5px);
}

.search-result-item:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.search-result-item:first-child {
    border-radius: 10px 10px 0 0;
}

/* Better search result text */
.search-result-nick {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.search-result-id {
    font-size: 0.9rem;
    color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
}

/* Better loading and no results states */
.search-loading {
    padding: 1.5rem;
    text-align: center;
    color: #4a9eff;
    font-style: italic;
    font-size: 1.1rem;
}

.search-no-results {
    padding: 1.5rem;
    text-align: center;
    color: #c0c0c0;
    font-style: italic;
    font-size: 1.1rem;
}

/* Better modal header */
.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 2px solid #ff6b35;
    margin-bottom: 0;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: #ff6b35;
    line-height: 1.3;
}

.close {
    font-size: 2.5rem;
    color: #4a5568;
    transition: color 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: #ff6b35;
}

/* Better select dropdown */
select.form-control {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23ff6b35' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
}

/* Better button styling */
.btn {
    min-width: 150px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        margin: 1rem auto;
        max-height: 90vh;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .welcome-info {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .welcome-info h4 {
        font-size: 1.2rem;
    }
    
    .welcome-info p {
        font-size: 1rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .search-results {
        max-height: 150px;
    }
    
    .search-result-item {
        padding: 1rem;
    }
    
    .search-result-nick {
        font-size: 1rem;
    }
    
    .search-result-id {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 98%;
        margin: 0.5rem auto;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .welcome-info {
        padding: 0.8rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .btn {
        min-width: 120px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Scrollbar styling for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #2a3441;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #ff8c42;
}
