@import './clickable.css';

/*button {
    background-color: #0000aa;
    color: #ffffff;
    opacity: 1;
    transition: opacity ease-in-out 0.15s;
}*/

/* VARS */
:root {
    --primary: #3A82F7;
    --primary-hover: #433afa;
    --secondary: #64748B;
    --secondary-hover: #94a3b8;
    --success: #1f8645;
    --warning: #F59E0B;
    --error: #F04544;
    --disabled: #A5C2F6;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
    color: var(--text);
    /*line-height: 1.6;*/
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin: 0px 1px;
}

button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover:before {
    left: 100%;
}

/* Primary Button */
.btn_primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn_primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-lg);
}

/* Secondary Button */
.btn_secondary {
    background: var(--secondary);
    color: white;
}

.btn_secondary:hover {
    background: var(--secondary-hover);
    border-color: var(--secondary);
}

/* Ghost Button */
.btn_ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid transparent;
}

.btn_ghost:hover {
    background: #f8fafc;
    border-color: var(--border);
}

/* Success Button */
.btn_success {
    background: var(--success);
    color: white;
}

.btn_success:hover {
    background: #09694b;
}

.btn_apply {
    background: var(--success);
    color: white;
}

.btn_apply:hover {
    background: #09694b;
}

.btn_error {
    background: var(--error);
    color: white;
}

.btn_error:hover {
    background: #960505;
}

/* Loading State */
.btn_loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn_loading .btn__text {
    visibility: hidden;
}

.btn_loading:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
