/* Button Styles */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: var(--font-size-md);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}


/* Primary Button */
.btn-primary {
    background-color: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline-primary:hover {
    background-color: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-danger {
    background-color: transparent;
    border: 2px solid var(--danger);
    color: var(--danger);
}

.btn-outline-danger:hover {
    background-color: var(--danger);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary:hover {
    background-color: var(--text-secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Outline Button */
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:hover {
    background-color: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Ghost Button */
.btn-ghost {
    background-color: transparent;
    color: var(--text-primary);
}

.btn-ghost:hover {
    background-color: var(--bg-tertiary);
    transform: translateY(-3px);
}

/* Button with icon */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-icon i, .btn-icon svg {
    font-size: 1.2em;
}

/* Small Button */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

/* Large Button */
.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
}

/* Full width Button */
.btn-block {
    display: block;
    width: 100%;
}

/* Rounded Button */
.btn-rounded {
    border-radius: 9999px;
}

/* Button with ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn-ripple:active::after {
    width: 300%;
    height: 300%;
}

/* Button Groups */
.btn-group {
    display: inline-flex;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
}

/* Disabled Button */
.btn-disabled, .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

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

.btn-success:hover {
    background-color: color-mix(in srgb, var(--success), white 10%);
}

/* Danger/Error Button */
.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: color-mix(in srgb, var(--danger), white 10%);
}

/* Warning Button */
.btn-warning {
    background-color: var(--warning);
    color: var(--text-primary);
}

.btn-warning:hover {
    background-color: color-mix(in srgb, var(--warning), white 10%);
}

/* Info Button */
.btn-info {
    background-color: var(--info);
    color: white;
}

.btn-info:hover {
    background-color: color-mix(in srgb, var(--info), white 10%);
}

/* Media Queries */
@media (max-width: 768px) {
    .btn {
        padding: 0.7rem 1.25rem;
    }

    .btn-lg {
        padding: 0.8rem 1.75rem;
    }

    .btn-block-md {
        display: block;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.6rem 1.1rem;
        font-size: var(--font-size-sm);
    }

    .btn-lg {
        padding: 0.7rem 1.5rem;
        font-size: var(--font-size-md);
    }

    .btn-block-sm {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}