@keyframes translate {
    0% {
        opacity: 1;
        transform:
            /*rotate(0deg)*/
            scale(1);
    }

    50% {
        opacity: 0;
        transform:
            /*rotate(180deg)*/
            scale(0.5);
    }

    100% {
        opacity: 1;
        transform:
            /*rotate(360deg)*/
            scale(1);
    }
}

.ButtonAnimation {
    animation: translate 1s ease forwards;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');

body {
    font-family: 'Noto Sans Arabic', system-ui, sans-serif;
}

.card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 6px 12px rgba(0, 0, 0, 0.03);
}

.cardBlack {
    background-color: #1E1E1E;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.06), 0 6px 12px rgba(255, 255, 255, 0.03);
}

.input-group {
    transition: all 0.3s ease;
    border-radius: 14px;
    border: 1px solid transparent;
}

.Bg-input-group{
    background-color: rgba(81, 91, 104, 0.8);
    color: white;
}

.Bg-input-group:hover{
    background-color: rgb(81, 91, 104);
}

.input-group:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    border-color: rgba(99, 102, 241, 0.3);
}

.input-group-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.07);
    border-color: rgba(99, 102, 241, 0.3);
}

input[type="number"] {
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
}

input[type="number"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    transform: scale(1.01);
    background-color: #fff;
}

.fancy-button, .fancy-button-dark {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.fancy-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.fancy-button-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.295);
}
.fancy-button::after, .fancy-button-dark:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.fancy-button:hover::after, .fancy-button-dark:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

.subject-label {
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.subject-label::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #4F46E5, #7C3AED);
    transition: width 0.3s ease;
}

.input-group:hover .subject-label::after {
    width: 100%;
}

.result-card, .result-card-dark {
    background: linear-gradient(135deg, #fcfcff 0%, #f8f9ff 100%);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}



.result-card-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.288);
    border-color: rgba(99, 102, 241, 0.3);
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.226);
    border-color: rgba(99, 102, 241, 0.3);
}
.result-value {
    transition: all 0.2s ease;
}

.result-card:hover .result-value , .result-card-dark:hover {
    transform: scale(1.05);
    color: #4338ca;
}

.page-title {
    background: linear-gradient(90deg, #4F46E5, #6366F1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    position: relative;
}

.page-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, #4F46E5, #6366F1);
    border-radius: 2px;
}

.toggle-button {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.Darajah:hover{
    transform: translateY(-3px);
}

.toggle-button-animation{
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}