body {
    overflow-x: hidden !important;
}

.global-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 20px);
    background: rgba(17, 24, 39, 0.94);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10000;
    max-width: min(92vw, 420px);
    text-align: center;
}

.global-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Disable text selection globally while keeping form fields selectable */
body:not(.allow-copy),
body:not(.allow-copy) *:not(input):not(textarea):not(select):not([contenteditable="true"]) {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

body:not(.allow-copy) input,
body:not(.allow-copy) textarea,
body:not(.allow-copy) select,
body:not(.allow-copy) [contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Mobile: prevent image long-press menu (save/open/share image) */
img {
    -webkit-touch-callout: none !important;
    -webkit-user-drag: none !important;
    user-drag: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

/* Mobile: prevent link long-press preview/open menu without breaking normal tap */
a,
a * {
    -webkit-touch-callout: none !important;
}

a {
    -webkit-user-drag: none !important;
}

.text-primary {
            color: #4b587d; 
        }

        .bg-primary {
            background-color: #4b587d; 
        }

        .hover\:bg-blue-600:hover { 
            background-color: #3b4564; 
        }

        .active-nav-item {
            color: #4b587d;
        }

        .active-nav-item i {
            color: #4b587d; 
        }
        .page-container {
    padding-left: 15px; 
    padding-right: 15px; 
}

@media (min-width: 768px) {
    .page-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}




.typing-effect::after {
            content: '|';
            animation: blink-caret .75s step-end infinite;
        }

        /* Keyframes for the blinking cursor */
        @keyframes blink-caret {
            from, to { border-color: transparent }
            50% { border-color: currentColor; }
        }
       
 .text-primary {
            color: var(--primary-color);
        }

        .bg-primary {
            background-color: var(--primary-color);
        }

        .hover\:bg-primary-dark:hover {
            background-color: var(--primary-light-color);
        }

        .bg-primary\/10 {
            background-color: var(--primary-lighter-color);
        }

        .border-primary {
            border-color: var(--primary-color);
        }

        .focus\:ring-primary:focus {
            --tw-ring-color: var(--primary-color);
        }

        /* Dropdown styles */
        .dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 9999; /* لازم يكون أعلى من باقي عناصر الصفحة */
    left: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    transform-origin: top right;
}


        .dropdown-content a {
            color: black;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
            text-align: right; /* Align text to the right for RTL */
            transition: background-color 0.2s ease;

        }

        .dropdown-content a:hover {
            background-color: #f1f1f1;
        }

        .dropdown-content.show {
            display: block;
            transform: translateY(0);
            opacity: 1;
        }

        .dropdown-content .dropdown-item.active {
            background-color: var(--primary-lighter-color);
            color: var(--primary-color);
            font-weight: 600;
        }


        /* Bottom Nav active state */
        .bottom-nav .active-nav-item {
            color: var(--primary-color);
            font-weight: 600;
        }

        /* Table Styles */
        .data-table {
            width: 100%;
            border-collapse: collapse;
        }

        .data-table th,
        .data-table td {
            padding: 12px 16px;
            text-align: right;
            border-bottom: 1px solid #e5e7eb; /* gray-200 */
        }

        .data-table th {
            background-color: var(--primary-lighter-color); /* Light primary background for headers */
            font-weight: 700;
            color: var(--primary-color);
            text-transform: uppercase;
            font-size: 0.875rem; /* text-sm */
        }

        .data-table tbody tr:hover {
            background-color: #f9fafb; /* gray-50 */
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .modal.show {
            opacity: 1;
            pointer-events: all;
        }

        .modal-content {
            background-color: #fefefe;
            padding: 2.5rem; /* p-10 */
            border-radius: 0.75rem; /* rounded-lg */
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-xl */
            max-width: 90%;
            width: 500px;
            position: relative;
            transform: translateY(-20px);
            transition: transform 0.3s ease;
        }

        .modal.show .modal-content {
            transform: translateY(0);
        }

        .modal-close-btn {
            color: #aaa;
            position: absolute;
            top: 1rem;
            left: 1rem;
            font-size: 1.875rem; /* text-3xl */
            font-weight: bold;
            cursor: pointer;
        }

        .modal-close-btn:hover,
        .modal-close-btn:focus {
            color: #000;
            text-decoration: none;
            cursor: pointer;
        }

        /* Star rating */
        .rating-stars i {
            color: #ccc;
            cursor: pointer;
            font-size: 1.5rem;
        }

        .rating-stars i.filled {
            color: #ffc107; /* Gold for filled stars */
        }

        /* Form elements */
        input[type="text"],
        input[type="date"],
        select,
        textarea {
            padding: 0.75rem 1rem; /* py-3 px-4 */
            border-width: 1px;
            border-radius: 0.5rem; /* rounded-lg */
            width: 100%;
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        input[type="text"]:focus,
        input[type="date"]:focus,
        select:focus,
        textarea:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(75, 88, 125, 0.2); /* ring-primary-light */
        }    
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 1s ease forwards;
}

/* يمكن إضافته في ملف CSS الخاص بك */
#add-training-modal {
    transition: all 0.3s ease;
}

#add-training-modal .bg-white {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}
.badge {
            display: inline-flex;
            align-items: center;
            padding: 0.35em 0.65em;
            font-size: 0.75em;
            font-weight: 700;
            line-height: 1;
            text-align: center;
            white-space: nowrap;
            border-radius: 50rem;
        }
        .edit-btn, .save-btn {
    transition: all 0.2s ease;
    cursor: pointer;
}

.edit-btn:hover, .save-btn:hover {
    transform: scale(1.1);
}


.no-scrollbar {
    -ms-overflow-style: none; 
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none; 
}
.rounded-full{
    margin-left: -0.7rem;
}
/*admin*/
  


.admin-dash  {
    background-color: #f3f4f6;
    color: #374151;
    direction: rtl;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.text-primary {
    color: #4b587d;
}

.bg-primary {
    background-color: #4b587d;
}

.hover\:bg-primary-dark:hover {
    background-color: #6a799c;
}

.bg-primary\/10 {
    background-color: #e0e4eb;
}

.border-primary {
    border-color: #4b587d;
}

.focus\:ring-primary:focus {
    --tw-ring-color: #4b587d;
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    left: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    transform-origin: top right;
}

.dropdown-content.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: right;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown-content .dropdown-item.active {
    background-color: #e0e4eb;
    color: #4b587d;
    font-weight: 600;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    background-color: #e0e4eb;
    font-weight: 700;
    color: #4b587d;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.data-table tbody tr:hover {
    background-color: #f9fafb;
}

.tree-view ul {
    list-style: none;
    padding-right: 20px;
}

.tree-view ul li {
    position: relative;
    padding: 5px 0;
}

.tree-view ul li::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background-color: #ccc;
}

.tree-view ul li:last-child::before {
    height: 15px;
}

.tree-view ul li::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 0;
    width: 10px;
    height: 1px;
    background-color: #ccc;
}

.tree-view ul li span {
    display: inline-block;
    padding-right: 5px;
    cursor: pointer;
}

.tree-view ul li .team-name {
    font-weight: bold;
    color: #4b587d;
}

.tree-view ul li .player-name {
    color: #374151;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background-color: #fefefe;
    padding: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-width: 90%;
    width: 500px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    color: #aaa;
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.875rem;
    font-weight: bold;
    cursor: pointer;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}


.team-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    font-weight: bold;
    color: #4b587d;
}
.team-header i {
    transition: transform 0.2s ease-out;
}
.team-header.collapsed i {
    transform: rotate(-90deg);
}
.team-players {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-right: 20px;
}
.team-players.expanded {
    max-height: 500px;
}

@media (max-width: 767px) {
    .flex-col.md\:flex-row {
        flex-direction: column;
    }
    .w-full.md\:w-2\/3, .w-full.md\:w-1\/3, .w-full.md\:col-span-2, .w-full.md\:w-auto {
        width: 100%;
    }
    .gap-4 {
        gap: 1rem;
    }
    .p-6.md\:p-8 {
        padding: 1.5rem;
    }
    .text-3xl {
        font-size: 2rem;
    }
    .text-2xl {
        font-size: 1.5rem;
    }
    .text-xl {
        font-size: 1.25rem;
    }

    .summary-card {
        padding: 0.5rem;
    }
    .summary-card .ri-icon {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    .summary-card .card-title {
        font-size: 0.875rem;
    }
    .summary-card .card-value {
        font-size: 1.25rem;
    }
}
.players-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
        }

        .players-table th,
        .players-table td {
            padding: 0.75rem;
            border-bottom: 1px solid #e5e7eb;
            text-align: right;
        }

        .players-table th {
            background-color: var(--primary-lighter-color);
            font-weight: 700;
            color: var(--primary-color);
            font-size: 0.875rem;
            text-transform: uppercase;
        }

        .players-table tbody tr:hover {
            background-color: #f9fafb;
        }

        .players-table td button {
            padding: 0.5rem 0.75rem;
            font-size: 0.875rem;
            border-radius: 0.375rem;
            transition: background-color 0.2s ease;
        }

        #recommendationPlayerName
        ,#currentStatus 
        ,#updateInjuryType
        ,#updatePlayerName
        ,#player-name-input,
        #evaluator-name
        {
            width:100%; 
        }

:root {
    --primary-color: #8F2546;
    --primary-light-color: #CD4270;
    --primary-lighter-color: #fbe0ea;
    --primary-gradient: linear-gradient(180deg, #8F2546, #CD4270, #E05181, #EE6998);
    --primary-gradient-hover: linear-gradient(180deg, #7f203d, #ba3d66, #d14f7c, #de5f8d);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--primary-gradient) !important;
}

.hover\:bg-primary-dark:hover,
.hover\:bg-blue-600:hover {
    background: var(--primary-gradient-hover) !important;
}

.bg-primary\/10 {
    background-color: rgba(205, 66, 112, 0.1) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.focus\:ring-primary:focus {
    --tw-ring-color: rgba(205, 66, 112, 0.35) !important;
}

.active-nav-item,
.active-nav-item i {
    color: var(--primary-color) !important;
}

/* Login fallback styles if page-specific css is stale on server */
.page-login {
    background:
        radial-gradient(1200px 600px at 100% -20%, rgba(224, 81, 129, 0.14), transparent 60%),
        radial-gradient(1000px 500px at -10% 0%, rgba(143, 37, 70, 0.12), transparent 60%),
        #eff4f8 !important;
}

.page-login .login-shell {
    max-width: 28rem;
    width: 100%;
}



.page-login .role-tab {
    transition: 0.2s all ease;
}

.page-login .role-tab.is-active {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 8px 18px rgba(143, 37, 70, 0.24);
}

.page-login .field {
    border: 1px solid #d8e1ea;
    border-radius: 0.75rem;
    padding: 0.78rem 0.95rem;
    width: 100%;
    transition: 0.2s all ease;
}

.page-login .field:focus {
    outline: none;
    border-color: #cd4270;
    box-shadow: 0 0 0 3px rgba(205, 66, 112, 0.12);
}

.page-login .btn-login {
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(143, 37, 70, 0.22);
}

.page-login .btn-login:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

/* Global login styles fallback (works even if css/login.css is stale) */
.login-page {
    background:
        radial-gradient(1200px 600px at 100% -20%, rgba(224, 81, 129, 0.14), transparent 60%),
        radial-gradient(1000px 500px at -10% 0%, rgba(143, 37, 70, 0.12), transparent 60%),
        #eff4f8 !important;
}

.login-shell {
    max-width: 28rem;
    width: 100%;
}



.role-tab {
    transition: 0.2s all ease;
}

.role-tab.is-active {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 8px 18px rgba(143, 37, 70, 0.24);
}

.field {
    border: 1px solid #d8e1ea;
    border-radius: 0.75rem;
    padding: 0.78rem 0.95rem;
    width: 100%;
    transition: 0.2s all ease;
}

.field:focus {
    outline: none;
    border-color: #cd4270;
    box-shadow: 0 0 0 3px rgba(205, 66, 112, 0.12);
}

.btn-login {
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(143, 37, 70, 0.22);
}

.btn-login:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.feedback-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #99f6e4;
}

.feedback-error {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}

/* Registration fallback styles if css/registration.css is stale on server */
body.page-registration {
    display: block !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
}

body:has(.registration-page) {
    display: block !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
}

.page-registration,
.registration-page {
    background:
        radial-gradient(1200px 600px at 100% -20%, rgba(224, 81, 129, 0.12), transparent 60%),
        radial-gradient(1000px 500px at -10% 0%, rgba(143, 37, 70, 0.10), transparent 60%),
        #eef3f7 !important;
}

.registration-main {
    width: 100%;
    background-color: #f9f9f9;
}

.registration-page {
    width: 100%;
    align-self: stretch;
    flex: 1 1 auto;
    display: block;
}

.registration-page .registration-progress {
    width: 97%;
}

.registration-page .card {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 0.9rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.07);
}

.registration-page .h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
}

.registration-page .p {
    color: #667085;
    font-size: 0.875rem;
}

.registration-page .step-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.8rem;
}

.registration-page .chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f172a;
    background: #f1f5f9;
    border: 1px solid #dde5ef;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    margin-bottom: 0.5rem;
}

.registration-page .input {
    border: 1px solid #d4dce6;
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
    width: 100%;
    background: #fff;
    text-align: right;
    transition: all 0.2s ease;
}

.registration-page .input:focus {
    outline: none;
    border-color: #cd4270;
    box-shadow: 0 0 0 3px rgba(205, 66, 112, 0.12);
}

.registration-page .label {
    font-size: 0.875rem;
    color: #1f2937;
    display: block;
    margin-bottom: 0.375rem;
    text-align: right;
}

.registration-page .cols-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .registration-page .cols-2-md {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.registration-page .btn {
    height: 2.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    padding: 0 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.registration-page .btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 10px 20px rgba(143, 37, 70, 0.25);
}

.registration-page .btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.registration-page .btn-outline {
    background: #fff;
    color: #111827;
    border: 1px solid #d4dce6;
}

.registration-page .btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.registration-page .contract-btn {
    height: 2.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.625rem;
    text-decoration: none;
    transition: all 0.2s;
}

.registration-page .radio-label-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0.25rem;
}

.registration-page .radio-item {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.registration-page .badge-req {
    font-size: 11px;
    border: none;
    background: #fff7ed;
    color: #9a3412;
    border-radius: 999px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.registration-page .dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    animation: pulse 1.5s infinite;
}

.registration-page .hint {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

.registration-page .shake {
    animation: shake 0.3s;
}

.registration-page .bg-black {
    background: var(--primary-gradient);
}
      
