/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(11, 14, 20, 0.95);
    margin: auto;
    padding: 0;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.5rem;
}

.close-modal {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--aurora-violet);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    justify-content: flex-end;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 6px;
    padding: 0.8rem;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--aurora-violet);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}

.form-separator {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-separator::before,
.form-separator::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: rgba(168, 85, 247, 0.2);
}

.form-separator::before { left: 0; }
.form-separator::after { right: 0; }

.btn-primary {
    background: var(--aurora-violet);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

/* Search Results Styles */
.search-container {
    position: relative;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1b26;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.search-result-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.search-result-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(168, 85, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aurora-violet);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.search-result-item .user-nickname {
    font-weight: 600;
    color: white;
    display: block;
}

.search-result-item .user-email {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    display: block;
}

.selected-user {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.selected-user-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
}

.user-badge-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #10b981;
}

.user-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.user-badge-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-badge-details strong {
    color: white;
    font-size: 0.95rem;
}

.user-badge-details small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.btn-clear {
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-clear:hover {
    background: #ef4444;
    color: white;
}

.hidden {
    display: none !important;
}

/* Team Invite Styles */
.invite-card {
    background: rgba(11, 14, 20, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 600px;
    margin: 4rem auto;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.15);
    text-align: center;
}
.invite-header img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    border: 2px solid var(--aurora-violet);
    object-fit: cover;
}
.invite-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}
.invite-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.invite-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.btn-accept {
    background: var(--aurora-violet);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-accept:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}
.btn-decline {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-decline:hover {
    background: #ef4444;
    color: white;
}
