@keyframes errorEntrance {
    0% {
        opacity: 0.5;
        transform: translateY(-10px);
    }

    30% {
        opacity: 1;
        font-size: 1.1rem;
        color: red;
    }

    70% {
        opacity: 1;
        transform: translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

.error-message {
    display: block; /* Ensures transform applies properly */
    color: orangered;
    animation: errorEntrance 0.8s;
}

/* buttons */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #56c964 0%, #3ea550 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.05s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

    .btn-primary::after {
        content: "";
        position: absolute;
        top: -120%;
        left: -40%;
        width: 45%;
        height: 300%;
        background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
        transform: translateX(-120%) rotate(25deg);
        transition: transform 0.6s ease;
    }

    .btn-primary:hover {
        filter: brightness(1.05);
        box-shadow: 0 0 0 4px rgba(88, 204, 103, 0.35);
    }

        .btn-primary:hover::after {
            transform: translateX(250%) rotate(25deg);
        }

    .btn-primary:active {
        transform: scale(0.94);
        filter: brightness(0.95);
    }


.btn-secondary {
    background: linear-gradient(145deg, #62727c 0%, #49545b 100%);
    color: #f8fafc;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: transform 0.05s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .btn-secondary:hover {
        background: linear-gradient(145deg, #6f8794 0%, #4f5f68 100%);
        box-shadow: 0 8px 20px rgba(40, 52, 59, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    }

    .btn-secondary:active {
        transform: scale(0.94);
        background: linear-gradient(145deg, #5b6a73 0%, #424d54 100%);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    }

.btn-warning {
    background-color: #eaa123;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.05s;
}

    .btn-warning:hover {
        background-color: #fbb233;
        box-shadow: 0 0 0 4px rgb(239, 163, 54, 0.3);
    }

    .btn-warning:active {
        background-color: #e5950b;
        transform: scale(0.94);
    }

.btn-danger {
    background-color: #ea3023;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.05s;
}

    .btn-danger:hover {
        background-color: #e9493d;
        box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.3);
    }

    .btn-danger:active {
        background-color: #d92619;
        transform: scale(0.94);
    }

button {
    min-height: 40px !important;
}

.btn-info {
    background-color: #f0f0f0;
    color: #121b15;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.05s;
}

    .btn-info:hover {
        background-color: #ecf5f0;
        box-shadow: 0 0 0 4px rgb(200, 254, 246, 0.30);
    }

    .btn-info:active {
        background-color: #eceded;
        transform: scale(0.94);
    }

/* fonts */
@font-face {
    font-family: 'IranSansMedium';
    src: url('../_fonts/woff2/IRANSansWeb_Medium.woff2') format('woff2'), url('../_fonts/woff/IRANSansWeb_Medium.woff') format('woff'), url('../_fonts/ttf/IRANSansWeb_Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'IranSansLight';
    src: url('../_fonts/woff2/IRANSansWeb_Light.woff2') format('woff2'), url('../_fonts/woff/IRANSansWeb_Light.woff') format('woff'), url('../_fonts/ttf/IRANSansWeb_Light.ttf') format('truetype');
}

body {
    font-family: 'Fredoka', sans-serif
}

:dir(rtl) body {
    font-family: IranSansMedium, 'Fredoka', sans-serif
}

.join-button {
    min-width: 120px;
}

@media (max-width: 576px) {
    .join-button {
        min-width: 90px;
    }
}
