.modern-btn {
    position: relative;
    padding: 10px;
    background-color: #3498db;
    color: #fff;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s;
    box-shadow: 2px 2px 4px #333;
}

/* Pseudo-element for the line on the top */
.modern-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

/* Pseudo-element for the line on the left */
.modern-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: #fff;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s;
}

.modern-btn:hover {
    background-color: #2980b9;
    /* Change the background color on hover */
}

.modern-btn:hover::before,
.modern-btn:hover::after {
    transform: scaleX(1);
    /* Show the lines on hover */
}