﻿/* ------------------------------
   الأساسيات العامة للطالب
------------------------------ */
body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background-color: #f7f7f7;
    color: #333;
}

.bg-aqua {
    background-color: #4CA6A8 !important;
}

/* ------------------------------
   الشريط الجانبي (Sidebar)
------------------------------ */
.student-sidebar {
    width: 250px;
    min-height: 100vh;
}

    .student-sidebar .nav-link {
        padding: 10px 15px;
        border-radius: 5px;
        transition: all 0.2s ease-in-out;
    }

        .student-sidebar .nav-link:hover,
        .student-sidebar .nav-link.active {
            background-color: #3e9496;
            color: #fff !important;
            font-weight: bold;
        }

    .student-sidebar img {
        border: 2px solid #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

/* ------------------------------
   الشريط العلوي (Topbar)
------------------------------ */
.topbar {
    border-bottom: 1px solid #ddd;
}



/*فونت الجزر */
@font-face {
    font-family: 'ZA-Roots';
    src: url('/fonts/ZA-roots.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.root-style {
    font-family: 'ZA-Roots', Arial, sans-serif;
    font-size: 24px;
    direction: rtl;
    display: inline-block;
}





/* ------------------------------
   البطاقات والأزرار
------------------------------ */
.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.btn-primary {
    background-color: #4CA6A8;
    border-color: #4CA6A8;
}

    .btn-primary:hover {
        background-color: #3b8d8f;
        border-color: #3b8d8f;
    }

.btn-outline-dark:hover {
    background-color: #4CA6A8;
    border-color: #4CA6A8;
    color: #fff;
}

/* ------------------------------
   الألوان حسب الشعار
------------------------------ */
.bg-darkgray {
    background-color: #333 !important;
    color: #fff;
}

.bg-orange {
    background-color: #DD6B20 !important;
    color: #fff;
}

/* ------------------------------
   دعم RTL للعناصر
------------------------------ */
th, td {
    text-align: right;
}

.text-end {
    text-align: right !important;
}

/* ------------------------------
   عناصر مخصصة للطالب
------------------------------ */
.progress-bar {
    background-color: #4CA6A8;
}

.card-title {
    color: #4CA6A8;
    font-weight: bold;
}
.sidebar-right {
    background-color: #339999;
    color: white;
    min-height: 100vh;
    position: sticky;
    top: 0;
    padding: 20px;
}
.ticker-bar {
    background-color: #333;
    color: white;
    position: relative;
}

.ticker-content {
    position: absolute;
    white-space: nowrap;
    display: inline-block;
    animation: tickerMove 25s linear infinite;
    left: -100%;
}

.ticker-bar:hover .ticker-content {
    animation-play-state: paused;
}

.news-link:hover {
    text-decoration: underline;
}

@keyframes tickerMove {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}



@keyframes scroll-left {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.ticker-content:hover {
    animation-play-state: paused;
}
