.create-group-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
    min-height: 100%;
}

.create-group-layout {
    display: flex;
    gap: 20px;
    max-width: 1000px;
    align-items: flex-start;
}

.create-group-panel {
    background-color: #242526; /* bg-secondary */
    padding: 25px 30px;
    border-radius: 12px;
    width: 100%;
    flex: 1;
    border: 1px solid #3e4042; /* border-color */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.group-preview-panel {
    flex: 1.1;
    position: sticky;
    top: 20px;
}

.create-group-logo {
    font-weight: 700;
    font-size: 1.8rem;
    color: #2d88ff; /* accent-color */
    margin-bottom: 20px;
    text-align: center;
}

.create-group-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .create-group-progress .step {
        color: #b0b3b8; /* text-secondary */
        font-weight: 600;
        padding-bottom: 5px;
        border-bottom: 3px solid transparent;
        font-size: 0.9rem;
    }

        .create-group-progress .step.active {
            color: #2d88ff; /* accent-color */
            border-bottom-color: #2d88ff; /* accent-color */
        }

#createGroupForm fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

#createGroupForm .form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

#createGroupForm .nav-btn {
    background: #18191a; /* bg-primary */
    border: 1px solid #3e4042; /* border-color */
    color: #ffffff; /* text-primary */
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

    #createGroupForm .nav-btn:hover {
        border-color: none; /* accent-color */
        color: none; /* accent-color */
    }

    #createGroupForm .nav-btn.primary {
        background-color: #2d88ff; /* accent-color */
        color: white;
        border-color: #2d88ff; /* accent-color */
    }

    #createGroupForm .nav-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

#createGroupForm input[type="text"],
#createGroupForm select,
#createGroupForm textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3e4042;
    margin-bottom: 12px;
    background-color: #18191a; /* bg-primary */
    border-radius: 8px;
    color: #ffffff; /* text-primary */
    font-size: 1rem;
    resize: none;
}

    #createGroupForm input[type="text"]:focus,
    #createGroupForm select:focus,
    #createGroupForm textarea:focus {
        outline: none;
        
    }

.connections-section {
    margin-top: 15px;
}

    .connections-section h5 {
        margin: 15px 0 8px 0;
        font-weight: 600;
        color: #ffffff; /* text-primary */
    }

.search-box {
    position: relative;
}

    .search-box input {
        padding-left: 35px !important;
    }

    .search-box i {
        position: absolute;
        left: 12px;
        color: #b0b3b8; /* text-secondary */
    }

.search-results, .selected-items {
    background-color: #18191a; /* bg-primary */
    border: 1px solid #3e4042; /* border-color */
    border-radius: 8px;
    max-height: 120px;
    overflow-y: auto;
    margin-top: 5px;
}

    .search-results:empty, .selected-items:empty {
        display: none;
    }

.result-item, .selected-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border-bottom: 1px solid #3e4042; /* border-color */
}

    .result-item:hover {
        background-color: #3a3b3c; /* bg-hover */
        cursor: pointer;
    }

    .result-item:last-child, .selected-item:last-child {
        border-bottom: none;
    }

.item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

    .item-info img {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        object-fit: cover;
    }

    .item-info span {
        font-size: 0.9rem;
        font-weight: 500;
        color: #ffffff; /* text-primary */
    }

.add-btn, .remove-btn {
    background: #2d88ff; /* accent-color */
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 24px;
    text-align: center;
}

.remove-btn {
    background: #e53e3e;
}

.group-preview-card {
    background: #242526; /* bg-secondary */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #3e4042; /* border-color */
}

.group-preview-cover {
    height: 160px;
    background-image: url('assets/cover_default.jpg');
    background-size: cover;
    background-position: center;
    background-color: #333;
    border-bottom: 1px solid #3e4042; /* border-color */
    position: relative;
}

.group-preview-details {
    display: flex;
    padding: 0 15px;
    margin-top: -30px;
    align-items: flex-end;
}

.group-preview-picture {
    z-index: 100;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    border: 4px solid #242526; /* bg-secondary */
    object-fit: cover;
    background-color: #555;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: #242526; /* bg-secondary */
}

.group-preview-info {
    margin-left: 15px;
    padding-bottom: 10px;
}

    .group-preview-info h3 {
        margin: 0 0 4px 0;
        font-size: 1.5rem;
        color: #ffffff; /* text-primary */
    }

    .group-preview-info p {
        margin: 0;
        font-size: 0.9rem;
        color: #b0b3b8; /* text-secondary */
        display: flex;
        align-items: center;
        gap: 5px;
    }

.group-preview-body {
    padding: 15px;
}

.group-preview-widget {
    margin-top: 15px;
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #ffffff; /* text-primary */
}

.widget-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(40px,1fr));
    gap: 8px;
}

    .widget-member-grid img {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        object-fit: cover;
        border-radius: 50%;
    }

@media (max-width: 900px) {
    .create-group-layout {
        flex-direction: column;
    }

    .group-preview-panel {
        position: static;
        width: 100%;
    }

    .create-group-wrapper {
        padding: 20px 10px;
    }
}
