/* ===== Base Material Button ===== */
.md-btn {
    position: relative;
    display: inline-block;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #6362e7;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s, color 0.3s;
    margin: 5px;
}

/* Hover */
.md-btn:hover {
    background-color: rgba(98, 0, 238, 0.08);
}

/* Ripple effect */
.md-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-out, height 0.4s ease-out, opacity 0.8s ease-out;
    opacity: 0;
}

.md-btn:active::after {
    width: 200px;
    height: 200px;
    opacity: 1;
    transition: 0s;
}

/* ===== Variants ===== */
.md-btn--outlined {
    background: transparent !important;
    border: 1px solid currentColor;
    color: inherit;
}

.md-btn--raised {
    color: #1e2f65;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.md-btn--raised:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ===== Sizes ===== */
.md-btn--xs {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 3px;
}

.md-btn--sm {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 3px;
}

.md-btn--md {
    font-size: 14px;
    padding: 8px 18px;
}

.md-btn--lg {
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 5px;
}

/* ===== Color Themes ===== */
.md-btn--primary {
    color: #ffffff;
    background: #6362e7;
}

.md-btn--primary:hover {
    background: #4b00c4;
}

.md-btn--secondary {
    color: #1e2f65;
    background: #ffc500;
}

.md-btn--secondary:hover {
    background: #ffc700;
    color: #1e2f65;
}

.md-btn--success {
    color: #ffffff;
    background: #2e7d32;
}

.md-btn--success:hover {
    background: #1b5e20;
}

.md-btn--danger {
    color: #ffffff;
    background: #d32f2f;
}

.md-btn--danger:hover {
    background: #b71c1c;
}

.md-btn--warning {
    color: #333;
    background: #ffc500;
}

.md-btn--warning:hover {
    background: #ffc700;
    color: #333;
}

/* Outlined theme versions */
.md-btn--outlined.md-btn--primary {
    color: #6200ee;
}

.md-btn--outlined.md-btn--secondary {
    color: #03dac6;
}

.md-btn--outlined.md-btn--success {
    color: #2e7d32;
}

.md-btn--outlined.md-btn--danger {
    color: #d32f2f;
}

.md-btn--outlined.md-btn--warning {
    color: #ffb300;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .md-btn {
        width: 100%;
        text-align: center;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .md-btn {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }
}