/* Account Type Picker Component Styles */

.atp-container {
    position: relative;
    overflow: hidden;
    transition: min-height 250ms ease-in-out, max-height 250ms ease-in-out;
}

/* Search */
.atp-search-wrapper {
    position: relative;
    padding: 12px 16px;
}

.atp-search-icon {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-400);
    font-size: 14px;
    pointer-events: none;
}

.atp-search {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--color-gray-300);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    background: var(--color-white-1);
    transition: border-color 0.2s;
}

.atp-search:focus {
    border-color: var(--color-cyan-1);
    box-shadow: 0 0 0 2px rgba(var(--color-cyan-1-rgb), 0.15);
}

/* Views container */
.atp-views-container {
    position: relative;
    overflow: hidden;
}

/* Slide views */
.atp-view {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transition: transform 250ms ease-in-out;
}

.atp-view.active {
    position: relative;
    transform: translateX(0);
}

.atp-view.slide-left {
    transform: translateX(-100%);
}

.atp-view.slide-right {
    transform: translateX(100%);
}

/* Category list */
.atp-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
}

.atp-category-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--color-gray-100);
    transition: background-color 0.15s;
}

.atp-category-row:hover {
    background: var(--color-gray-50);
}

.atp-category-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-white-1);
    font-size: 18px;
}

.atp-category-info {
    flex: 1;
    margin-left: 12px;
}

.atp-category-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-gray-700);
}

.atp-category-examples {
    font-weight: 400;
    font-size: 12px;
    color: var(--color-gray-400);
    margin-left: 8px;
}

.atp-category-count {
    font-size: 12px;
    color: var(--color-gray-500);
}

.atp-category-chevron {
    color: var(--color-gray-300);
}

/* Back header */
.atp-back-header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid var(--color-gray-200);
}

.atp-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    color: var(--color-cyan-1);
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.15s;
}

.atp-back-btn:hover {
    background: var(--color-gray-50);
}

.atp-back-title {
    font-weight: 600;
    font-size: 15px;
    margin-left: 8px;
    color: var(--color-gray-700);
}

/* Type rows */
.atp-type-row {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--color-gray-100);
    transition: background-color 0.15s;
}

.atp-type-row:hover {
    background: var(--color-gray-50);
}

.atp-type-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-white-1);
    font-size: 14px;
}

.atp-type-info {
    flex: 1;
    margin-left: 12px;
}

.atp-type-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-gray-700);
}

.atp-type-desc {
    font-size: 12px;
    color: var(--color-gray-500);
    margin-top: 1px;
}

/* Search results */
.atp-search-results {
    overflow-y: auto;
    max-height: 340px;
}

.atp-no-results {
    padding: 24px 16px;
    text-align: center;
    color: var(--color-gray-400);
    font-size: 14px;
}

/* Category tag in search results */
.atp-category-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
}

/* Selected type bar */
.atp-selected-bar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: var(--color-gray-50);
    border-radius: 8px;
    margin-bottom: 12px;
}

.atp-change-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--color-cyan-1);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.15s;
}

.atp-change-btn:hover {
    background: var(--color-brand-light);
}

/* Dark mode */
body.dark-mode .atp-search {
    background: var(--color-gray-900);
    border-color: var(--color-gray-600);
    color: var(--color-gray-200);
}

body.dark-mode .atp-search:focus {
    border-color: var(--color-cyan-2);
    box-shadow: 0 0 0 2px rgba(var(--color-cyan-2-rgb), 0.2);
}

body.dark-mode .atp-search-icon {
    color: var(--color-gray-500);
}

body.dark-mode .atp-category-row,
body.dark-mode .atp-type-row {
    border-bottom-color: var(--color-gray-700);
}

body.dark-mode .atp-category-row:hover,
body.dark-mode .atp-type-row:hover {
    background: var(--color-gray-900);
}

body.dark-mode .atp-category-name,
body.dark-mode .atp-back-title,
body.dark-mode .atp-type-name {
    color: var(--color-gray-200);
}

body.dark-mode .atp-category-examples {
    color: var(--color-gray-500);
}

body.dark-mode .atp-category-count,
body.dark-mode .atp-type-desc {
    color: var(--color-gray-400);
}

body.dark-mode .atp-category-chevron {
    color: var(--color-gray-600);
}

body.dark-mode .atp-back-header {
    border-bottom-color: var(--color-gray-700);
}

body.dark-mode .atp-back-btn:hover {
    background: var(--color-gray-800);
}

body.dark-mode .atp-selected-bar {
    background: var(--color-gray-800);
}

body.dark-mode .atp-no-results {
    color: var(--color-gray-500);
}
