/* Modern Button System - Unified Theme */

/* ===== PRIMARY BUTTONS (Brand Green) ===== */
.btn-primary {
    background: linear-gradient(135deg, #2d5016 0%, #3d6b1e 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.2);
    padding: 0.6rem 1.5rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1f3411 0%, #2d5016 100%);
    box-shadow: 0 6px 16px rgba(45, 80, 22, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(45, 80, 22, 0.2);
}

.btn-primary:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: none;
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-primary.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn-primary.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

/* ===== WARNING/CTA BUTTONS (Gold) ===== */
.btn-warning {
    background: linear-gradient(135deg, #d4a855 0%, #c99a3c 100%);
    border: none;
    color: #2d5016;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 168, 85, 0.3);
    padding: 0.6rem 1.5rem;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #c99a3c 0%, #b8873d 100%);
    box-shadow: 0 6px 16px rgba(212, 168, 85, 0.4);
    transform: translateY(-2px);
    color: #2d5016;
    text-decoration: none;
}

.btn-warning:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(212, 168, 85, 0.2);
}

.btn-warning:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: none;
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-warning.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* ===== SUCCESS BUTTONS (Green) ===== */
.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
    padding: 0.6rem 1.5rem;
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

/* ===== DANGER BUTTONS (Red) ===== */
.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
    padding: 0.6rem 1.5rem;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

/* ===== SECONDARY BUTTONS (Gray) ===== */
.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
    padding: 0.6rem 1.5rem;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

/* ===== OUTLINE BUTTONS ===== */
.btn-outline-primary {
    border: 2px solid #2d5016;
    color: #2d5016;
    background-color: transparent;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 0.5rem 1.3rem;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #2d5016 0%, #3d6b1e 100%);
    border-color: #2d5016;
    color: white;
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.2);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background-color: transparent;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 0.5rem 1.3rem;
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border-color: #6c757d;
    color: white;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
    transform: translateY(-2px);
}

.btn-outline-danger {
    border: 2px solid #dc3545;
    color: #dc3545;
    background-color: transparent;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 0.5rem 1.3rem;
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    border-color: #dc3545;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    transform: translateY(-2px);
}

.btn-outline-success {
    border: 2px solid #28a745;
    color: #28a745;
    background-color: transparent;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 0.5rem 1.3rem;
}

.btn-outline-success:hover {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    transform: translateY(-2px);
}

/* ===== LIGHT BUTTONS ===== */
.btn-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    color: #2d5016;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.6rem 1.5rem;
}

.btn-light:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    color: #2d5016;
    text-decoration: none;
}

.btn-light:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== TEXT/LINK BUTTONS ===== */
.btn-link {
    color: #2d5016;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
}

.btn-link:hover {
    color: #1f3411;
    text-decoration: underline;
    transform: translateX(2px);
}

/* ===== ICON BUTTONS ===== */
.btn i {
    margin-right: 0.35rem;
}

.btn i:last-child {
    margin-right: 0;
    margin-left: 0.35rem;
}

/* ===== SIZE VARIATIONS ===== */
.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 10px;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* ===== ROUNDED BUTTONS (Pill shape) ===== */
.btn-rounded {
    border-radius: 50px;
}

.btn-rounded.btn-lg {
    border-radius: 50px;
}

/* ===== BUTTON GROUPS ===== */
.btn-group .btn {
    margin-right: 0.5rem;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* ===== FOCUS STATE (Accessibility) ===== */
.btn:focus {
    outline: 2px solid rgba(45, 80, 22, 0.5);
    outline-offset: 2px;
}

.btn-primary:focus,
.btn-primary.btn-outline-primary:focus {
    outline-color: rgba(45, 80, 22, 0.5);
}

.btn-warning:focus {
    outline-color: rgba(212, 168, 85, 0.5);
}

.btn-danger:focus {
    outline-color: rgba(220, 53, 69, 0.5);
}

/* ===== BUTTON STATES ===== */
.btn:disabled,
.btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .btn-lg {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
}
