@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4C84FF;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --background-color: #f5f5f5;
    --text-primary: #333;
    --text-secondary: #666;
}

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 80%;
}

body {
    background: var(--background-color);
    padding: 4rem 2rem;
}

.container {
    max-width: 120rem;
    margin: 0 auto;
}

h1 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 4rem;
    text-align: center;
}

/* Button Section */
.button-section {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    margin-bottom: 3rem;
}

.button-section h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
}

/* Base Button Styles */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.4rem 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    border: none;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    outline: none;
}

.btn:active {
    transform: scale(0.95);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

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

.btn-primary:hover {
    background: #3b72e8;
    box-shadow: 0 6px 20px rgba(76, 132, 255, 0.4);
}

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

.btn-success:hover {
    background: #059669;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

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

.btn-warning:hover {
    background: #d97706;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

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

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

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

.btn-info:hover {
    background: #2563eb;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-outline-primary .ripple-effect {
    background: rgba(76, 132, 255, 0.4);
}

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

.btn-outline-success:hover {
    background: var(--success-color);
    color: #fff;
}

.btn-outline-success .ripple-effect {
    background: rgba(16, 185, 129, 0.4);
}

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

.btn-outline-warning:hover {
    background: var(--warning-color);
    color: #fff;
}

.btn-outline-warning .ripple-effect {
    background: rgba(245, 158, 11, 0.4);
}

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

.btn-outline-danger:hover {
    background: var(--danger-color);
    color: #fff;
}

.btn-outline-danger .ripple-effect {
    background: rgba(239, 68, 68, 0.4);
}

/* Icon Only Buttons */
.btn-icon {
    width: 5rem;
    height: 5rem;
    padding: 0;
    border-radius: 50%;
}

.btn-icon i {
    font-size: 2rem;
}

/* Large Buttons */
.btn-large {
    padding: 2rem 4rem;
    font-size: 1.8rem;
}

.btn-large i {
    font-size: 2.2rem;
}

/* Demo Card */
.demo-card {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
}

.demo-text {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.demo-text span {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 2.4rem;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 70%;
    }

    .button-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.4rem;
    }
}

/* Accessibility */
.btn:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

/* Disabled State */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}
