.card {
    position: relative;
    background-color: #1B1B1B;
    border: 1px solid #4A4A4A;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
}

.card-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
}

.card-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #2C2C2C;
    border-radius: 6px;
    padding: 12px 17px;
    gap: 12px;
}

.card-row > .card-field {
    flex: 1;
}

.card-field i {
    font-size: 24px;
    line-height: 1;
    color: #B9BBBE;
}

.card-field img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 5px;
}

.field-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.input-pair-row {
    display: flex;
    gap: 10px;
    width: 100%;
    flex-wrap: nowrap;
}

/* field labels */
.card-field-label {
    display: flex;
    justify-content: space-between;
}

.field-label {
    font-size: 13px;
    font-weight: 400;
    color: #B9BBBE;
    font-family: 'Space Grotesk', sans-serif;
    text-decoration: none;
}

.field-label.button {
    color: #dbdbdb;
    cursor: pointer;
}

.field-label.button:hover {
    color: #FFF;
    text-decoration: underline;
}

.field-label.button.disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

.field-label.button.disabled:hover {
    color: #999;
    text-decoration: none;
}

/* field content styles for inputs n shit */
.field-content input,
.field-content textarea,
.field-content select {
    background-color: #1E1E1E;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    padding: 8px 10px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.field-content input:disabled,
.field-content textarea:disabled,
.field-content select:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #1a1a1a;
    border-color: #333;
    color: #ccc;
}

.field-content textarea {
    resize: none;
    min-height: 96px;
    overflow: auto;
}

.field-content input:focus,
.field-content textarea:focus,
.field-content select:focus {
    border-color: #666;
    outline: none;
}

.field-content select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23fff" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 17px;
    padding-right: 36px;
    cursor: pointer;
}

.field-content select:disabled {
    cursor: not-allowed;
}

.input-wrapper {
    display: flex;
    width: 100%;
    border: 1px solid #444;
    border-radius: 6px;
    background-color: #1E1E1E;
    overflow: hidden;
}

.input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    padding: 8px 0 8px 10px;
    font-size: 14px;
    font-family: 'Space Grotesk', sans-serif;
    outline: none;
    min-width: 0;
}

.input-text {
    border: none;
    background: none;
    color: #BBB;
    font-size: 12px;
    font-family: 'Space Grotesk', sans-serif;
    padding: 0 12px;
    cursor: pointer;
    transition: color 0.2s ease;
    background-color: transparent;
    cursor: default;
}

.input-text.hover:hover {
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
}

.input-text.danger {
    color: #FF6B6B;
}

.input-text.hover.danger:hover {
    color: #fe8282;
}

.input-text.success {
    color: #7EBE7E;
}

.input-text.hover.success:hover {
    color: #90c990;
}

.input-text:disabled {
    color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

/* field feedback */
.field-feedback {
    font-size: 10px;
    color: #FF6B6B;
}

.field-feedback.success {
    color: #7EBE7E;
}

.field-feedback:empty {
    display: none;
}

/* card text buttons */
.card-button-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.card-text-button {
    font-size: 14px;
    font-family: 'Space Grotesk', sans-serif;
    color: #BBB;
}

.card-text-button a {
    color: inherit;
    text-decoration: none;
}

.card-text-button.danger {
    color: #A83B3B;
}

.card-text-button:hover {
    color: #FFF;
    cursor: pointer;
    text-decoration: underline;
}

.card-text-button.danger:hover {
    color: #ff5858;
    cursor: pointer;
    text-decoration: underline;
}

.card-button-seperator {
    width: 4px;
    height: 4px;
    border-radius: 25px;
    background-color: #D9D9D9;
}

/* user cards */
.card-user-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    min-height: 58px;
}

.card-user-list.empty {
    justify-content: center;
}

.card-user-list p, .card-user-list a {
    font-size: 13px;
    font-weight: 400;
    color: #BBB;
    font-family: 'Space Grotesk', sans-serif;
    text-decoration: none;
}

.card-user-list a {
    text-decoration: underline;
}

.card-user-list a:hover {
    color: #FFF;
    cursor: pointer;
    text-decoration: underline;
}

.user-card {
    display: flex;
    align-items: center;
    background-color: #1F1F1F;
    border-radius: 6px;
    padding: 10px 14px;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    width: calc(50% - 6px);
    box-sizing: border-box;
}

/* a different background for the add user card */
.user-card.add {
    background-color: #242424;
    border: 1px solid #444;
}

.user-card img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.user-card-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.card-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #FFF;
    font-family: 'Space Grotesk', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-user-subtext {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #999;
    font-family: 'Space Grotesk', sans-serif;
}

.user-card-seperator {
    width: 3px;
    height: 3px;
    background-color: rgb(177, 177, 177);
    border-radius: 25px;
}

.user-card-input {
    border: 2px solid #FF6B6B !important;
}

.user-card-input.valid {
    border-color: #7EBE7E !important
}

.user-card-input::placeholder {
    color: #777;
    font-style: italic;
}

/* user card actions */
.user-card-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-items: flex-end;
    flex-shrink: 0;
}

.user-card-button {
    font-size: 12px;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: color 0.2s ease;
    text-align: right;
    width: fit-content;
}

.user-card-button.add {
    color: #7EBE7E;
}

.user-card-button.add:hover {
    color: #A1F0A1;
    text-decoration: underline;
}

.user-card-button.remove {
    color: #FF6B6B;
}

.user-card-button.remove:hover {
    color: #FF4C4C;
    text-decoration: underline;
}

/* card steps */
.card-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 80%;
}

.step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-family: 'Space Grotesk', sans-serif;
    color: #999;
    background-color: #1B1B1B;
    transition: all 0.2s ease;
    /* cursor: pointer; */
    padding: 0;
    outline: none;
    background-clip: padding-box;
}

/* .step-dot:hover {
    border-color: #7EBE7E;
    color: #fff;
} */

.step-dot.active {
    border-color: #7EBE7E;
    background-color: #7EBE7E;
    color: #1B1B1B;
    font-weight: bold;
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #444;
    border-radius: 2px;
}

.step-title {
    font-size: 13px;
    font-weight: 500;
    color: #BBB;
    font-family: 'Space Grotesk', sans-serif;
    text-align: center;
}

/* card overlays */
.card-overlay-wrapper {
    position: relative;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(18, 18, 18, 0.85);
    border-radius: 6px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.card-overlay-message {
    text-align: center;
    color: #CCC;
    font-size: 13px;
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 80%;
}

.card-overlay-message i {
    font-size: 20px;
    color: #7EBE7E;
}

.card-overlay-button {
    background-color: #7EBE7E;
    color: #1B1B1B;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.card-overlay-button:hover {
    background-color: #6AA96A;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .card-row {
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
    }

    .card-field {
        width: 100%;
        height: auto;
        padding: 12px 17px;
        box-sizing: border-box;
    }

    .card {
        padding: 12px;
    }

    .card-user-list {
        flex-direction: column;
    }

    .user-card {
        width: 100%;
        flex-direction: row;
        align-items: center;
    }

    .card-user-subtext {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .user-card-seperator {
        display: none;
    }

    .field-icon.optional {
        display: none;
    }
}