@import '~antd/dist/antd.css';

html,
body {
    background-color: var(--vscode-background);
    color: var(--vscode-foreground);
    height: auto;
}

.App {
    font-family: var(--vscode-font-family);
    font-style: normal;
    font-size: 13px;
    line-height: 16px;
    margin: 16px 0;
    padding: 0;
}

div,
p,
button {
    font-family: var(--vscode-font-family);
    font-style: normal;
}

button {
    outline: none;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 3px;
}

button svg {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--vscode-button-background);
    color: var(--vscode-button-foreground);
}

.btn-disable {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger {
    background-color: var(--vscode-debugExceptionWidget-border);
    color: #f0f0f0;
}

.btn-danger svg {
    vertical-align: bottom;
}

.btn-gray {
    background-color: var(--vscode-button-secondaryBackground);
    color: var(--vscode-button-foreground);
}

.container {
    margin-top: 12px;
    min-width: 270px;
}

.link {
    color: var(--vscode-textLink-foreground);
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

.pointer {
    cursor: pointer;
}

.vscode-icon path {
    fill: var(--vscode-button-foreground);
}

.small-icon {
    width: 13px;
    height: 13px;
}

.loading-spin {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Home Page Style */

.step-title {
    font-size: 24px;
    margin-bottom: 28px;
    line-height: 24px;
}

.step-desc {
    color: var(--vscode-input-foreground);
    margin-top: 8px;
    margin-bottom: 10px;
}

.platform-title {
    font-size: 14px;
    font-weight: bold;
    margin-top: 27px;
    margin-bottom: 16px;
}

.platform-option {
    padding: 16px;
    border-radius: 3px;
    font-size: 14px;
    background-color: var(--vscode-notificationCenterHeader-background);
    color: var(--vscode-badge-foreground);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    cursor: pointer;
}

.platform-option:hover {
    background-color: var(--vscode-editor-inactiveSelectionBackground);
}

.platform-option .platform-type {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 18px;
}

.platform-option .platform-desc {
    font-size: 12px;
    color: var(--vscode-input-placeholderForeground);
}

.platform-icon {
    text-align: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 13px 5px;
    background-color: var(--vscode-input-background);
}

/* Login Page Style */

.login-type {
    background-color: var(--vscode-notificationCenterHeader-background);
    color: var(--vscode-notifications-foreground);
    border-radius: 4px;
    text-align: center;
    margin-bottom: 20px;
}

.login-title {
    padding: 17px 0;
    font-size: 13px;
    position: relative;
}

.login-icon {
    position: absolute;
    left: 19px;
    top: 18px;
}

.login-icon g,
.login-icon path {
    fill: var(--vscode-notifications-foreground);
}

.qrcode-wrapper {
    background-color: var(--vscode-settings-checkboxBorder);
    padding: 12px 0;
}

.btn-close {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 20px;
}

.btn-close .vscode-icon path {
    fill: var(--vscode-foreground);
}

/* Information Page Style */

.info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-header .actions {
    text-align: right;
}

.info-header .actions svg {
    vertical-align: middle;
}

.info-header .actions svg path {
    fill: var(--vscode-foreground);
}

.info-platform {
    font-size: 16px;
    font-weight: bold;
}

.region-selection {
    cursor: pointer;
    display: inline-block;
    padding: 2px 5px;
    font-size: 12px;
    color: var(--vscode-foreground);
    background-color: var(--vscode-quickInput-background);
    border: 1px solid var(--vscode-dropdown-border);
    vertical-align: middle;
}

.region-selection .anticon-down svg {
    margin-left: 5px;
}

.deploy-info-wrapper,
.deploying-wrapper {
    background-color: var(--vscode-list-hoverBackground);
    color: var(--vscode-editorWidget-foreground);
    border: 1px solid var(--vscode-editorWidget-border);
    padding: 12px 13px;
    border-radius: 4px;
}
.deploy-info span {
    font-size: 12px;
    color: var(--vscode-list-deemphasizedForeground);
}

.deploy-info .project-name {
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    margin-right: 10px;
}

.deploy-info .name-loading {
    display: inline-block;
    font-size: 18px;
    width: 30px;
}

@keyframes ellipsis {
    to {
        width: 1.25em;
    }
}

.deploy-info .name-loading:after {
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    -webkit-animation: ellipsis steps(4, end) 1.2s infinite;
    animation: ellipsis steps(4, end) 1.2s infinite;
    content: '\2026';
    width: 0px;
}

.deploy-info .stage-badge {
    font-size: 12px;
    display: inline-block;
    padding: 0 4px;
    border-radius: 2px;
    color: var(--vscode-input-foreground);
    background-color: var(--vscode-badge-background);
    vertical-align: text-top;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.dot.gray {
    background-color: var(--vscode-breadcrumb-foreground);
}
.dot.green {
    background-color: var(--vscode-charts-green);
}
.dot.red {
    background-color: var(--vscode-charts-red);
}

.deploy-empty.ant-empty {
    margin-top: 50%;
}

.deploy-empty .ant-empty-footer {
    margin-top: 60px;
}

.custom-dropdown,
.menu-popover {
    width: 150px;
}

.custom-dropdown.wider-dropdown {
    width: 180px;
}

.custom-dropdown .ant-dropdown-menu {
    background-color: var(--vscode-debugToolBar-background);
    padding: 6px;
}

.selection-item {
    width: 100%;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--vscode-editorWidget-foreground);
}

.selection-item svg path {
    fill: var(--vscode-editorWidget-foreground);
}

.custom-dropdown .ant-dropdown-arrow {
    border-color: var(--vscode-debugToolBar-background);
	background: var(--vscode-debugToolBar-background);
}

.custom-dropdown .ant-dropdown-arrow:before {
	background: transparent;
}

.custom-dropdown .ant-dropdown-menu-item {
    font-size: 13px;
    border-radius: 3px;
}

.custom-dropdown .ant-dropdown-menu-item:hover,
.menu-popover .ant-list-item:hover {
    background-color: var(--vscode-editorSuggestWidget-selectedBackground);
    color: var(--vscode-editorSuggestWidget-foreground);
}

.custom-dropdown .ant-dropdown-menu-item:hover .selection-item,
.menu-popover .ant-list-item:hover .selection-item {
    color: var(--vscode-editorSuggestWidget-foreground);
}

.custom-dropdown .ant-dropdown-menu-item:hover .selection-item svg path,
.menu-popover .ant-list-item:hover .selection-item svg path {
    fill: var(--vscode-editorSuggestWidget-foreground);
}

.menu-popover .ant-popover-inner-content {
    padding: 6px;
}

.menu-popover .ant-popover-inner,
.menu-popover .ant-popover-arrow-content,
.menu-popover .ant-popover-arrow-content:before {
    background-color: var(--vscode-debugToolBar-background);
}

.menu-popover .ant-popover-arrow-content:before {
    background: var(--vscode-debugToolBar-background);
}

.menu-popover.ant-popover-placement-bottomRight .ant-popover-arrow {
	right: 12px;
}

.menu-popover .ant-list-item {
    padding: 7px;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    color: var(--vscode-editorWidget-foreground);
}

.menu-popover .ant-popover-title {
    min-width: 150px;
    padding-left: 14px;
    color: var(--vscode-editorWidget-foreground);
    border-color: var(--vscode-editorWidget-border);
    word-break: break-all;
}

.menu-popover .account-label {
    margin-bottom: 3px;
    font-size: 12px;
    color: var(--vscode-list-deemphasizedForeground);
}

.empty-icon path {
    fill: var(--vscode-debugToolBar-background);
}

.empty-icon path:last-child {
    fill: var(--vscode-editorGroup-border);
}

.vscode-light .empty-icon path {
    fill: #cecece;
}

.vscode-light .empty-icon path:last-child {
    fill: var(--vscode-editorGroup-border);
}

.unsupport-tip {
    margin-top: 15px;
    padding: 14px;
    border: 1px solid var(--vscode-notifications-border);
    border-radius: 4px;
    color: var(--vscode-list-deemphasizedForeground);
    text-align: left;
}

.unsupport-tip .ant-btn-link {
    padding: 0;
}

.info-icon {
    margin-right: 15px;
    margin-top: 3px;
}

.info-icon path {
    fill: var(--vscode-list-deemphasizedForeground);
}
