﻿/*Text Button*/
.md-button {
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px; /* Adds rounded corners similar to Material buttons */
    position: relative;
    overflow: hidden; /* For ripple effect */
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit color from parent, can be customized */
    font-weight: bold;
}

    .md-button:hover {
        background-color: var(--bs-primary); /* Use the primary colour */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); /* Creates an elevation effect on hover */
        color: #ffffff !important; /* White text color */
    }

    .md-button::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        transform: scale(0);
        transition: transform 0.3s, opacity 0.4s;
        opacity: 0;
        pointer-events: none;
    }

    .md-button:hover::after {
        transform: scale(2);
        opacity: 0;
    }


/*Filled Button*/
.md-filled-button {
    background-color: var(--bs-primary); /* Primary color */
    color: #ffffff; /* White text color */
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

    .md-filled-button:hover {
        background-color: #0034be; /* Darker shade for hover effect */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
        
    }

    .md-filled-button:active {
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    }

    .md-filled-button::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 300%;
        height: 300%;
        background: rgba(255, 255, 255, 0.4);
        border-radius: 50%;
        transform: translate(-50%, -50%) scale(0);
        transition: transform 0.5s, opacity 0.5s;
        opacity: 0;
        pointer-events: none;
    }

    .md-filled-button:active::after {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }

/* Icon and text alignment */
.material-symbols-outlined {
    vertical-align: bottom;
}