@import url('flag-icons.css');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap&family=Cairo:slnt,wght@-11..11,200..1000&family=Rubik:wght@300..900');

html,body{
    font-family: "Tajawal", sans-serif;
}

.vertical-menu, .btn, .swal2-content{
    font-weight: bold !important;
}

.form-control, .form-select, .btn{
    line-height: 1.8 !important;
}

.wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100vh;
}

.float-right {
    float: right !important;
}

.float-left {
    float: left !important;
}

.ltr{
    direction: ltr !important;
}

.rtl{
    direction: rtl !important;
}

.spi{
    margin-left: 10px !important;
}

table.dataTable thead {
    background-color: #556ee6 !important;
    color: white;
    text-align: center;
}

.dropdown-item {
    font-size: 10pt !important;
    font-weight: bold !important;
    line-height: 2 !important;
}

table .dropdown-menu.show {
    inset: unset !important;
}

.dropdown-menu-dark .dropdown-divider {
    border-color: #666;
}

.form-group{
    margin-bottom: 20px !important;
}

.form-group h6{
    font-weight: bold !important;
    margin-bottom: 15px;
    color: #556ee6;
}

.form-group .fa , .form-group .bx {
    color: #556ee6;
}


.invalid-input-message {
    width: 100%;
    margin-top: .25rem;
    font-size: 80%;
    color: #f46a6a;
}

.form-select{
    height: 41px;
}

.alert .icon {
	margin-right: 10px;
}
.alert .close, .alert .mailbox-attachment-close {
	color: #000;
	opacity: .2;
}
.alert .close:hover, .alert .mailbox-attachment-close:hover {
	opacity: .5;
}
.alert a {
	text-decoration: underline;
}
.alert-success {
	border-color: #23923d;
}
.alert-danger, .alert-error {
	border-color: #d32535;
}
.alert-warning {
	border-color: #edb100;
}
.alert-info {
	border-color: #148ea1;
}

.bg-primary, .label-primary {
	background-color: #556ee6 !important;
}
a.bg-primary:hover, a.label-primary:hover, a.bg-primary:focus, a.label-primary:focus, button.bg-primary:hover, button.label-primary:hover, button.bg-primary:focus, button.label-primary:focus {
	background-color: #556ee6 !important;
}
.bg-secondary {
	background-color: #6c757d !important;
}
a.bg-secondary:hover, a.bg-secondary:focus, button.bg-secondary:hover, button.bg-secondary:focus {
	background-color: #545b62 !important;
}
.bg-success, .alert-success, .label-success {
	background-color: #28a745 !important;
}
a.bg-success:hover, a.alert-success:hover, a.label-success:hover, a.bg-success:focus, a.alert-success:focus, a.label-success:focus, button.bg-success:hover, button.alert-success:hover, button.label-success:hover, button.bg-success:focus, button.alert-success:focus, button.label-success:focus {
	background-color: #1e7e34 !important;
}
.bg-info, .alert-info, .label-info {
	background-color: #17a2b8 !important;
}
a.bg-info:hover, a.alert-info:hover, a.label-info:hover, a.bg-info:focus, a.alert-info:focus, a.label-info:focus, button.bg-info:hover, button.alert-info:hover, button.label-info:hover, button.bg-info:focus, button.alert-info:focus, button.label-info:focus {
	background-color: #117a8b !important;
}
.bg-warning, .alert-warning, .label-warning {
	background-color: #ffc107 !important;
}
a.bg-warning:hover, a.alert-warning:hover, a.label-warning:hover, a.bg-warning:focus, a.alert-warning:focus, a.label-warning:focus, button.bg-warning:hover, button.alert-warning:hover, button.label-warning:hover, button.bg-warning:focus, button.alert-warning:focus, button.label-warning:focus {
	background-color: #d39e00 !important;
}
.bg-danger, .alert-danger, .alert-error, .label-danger {
	background-color: #dc3545 !important;
}
a.bg-danger:hover, a.alert-danger:hover, a.alert-error:hover, a.label-danger:hover, a.bg-danger:focus, a.alert-danger:focus, a.alert-error:focus, a.label-danger:focus, button.bg-danger:hover, button.alert-danger:hover, button.alert-error:hover, button.label-danger:hover, button.bg-danger:focus, button.alert-danger:focus, button.alert-error:focus, button.label-danger:focus {
	background-color: #bd2130 !important;
}
.bg-light {
	background-color: #f8f9fa !important;
}
a.bg-light:hover, a.bg-light:focus, button.bg-light:hover, button.bg-light:focus {
	background-color: #dae0e5 !important;
}
.bg-dark {
	background-color: #343a40 !important;
}
a.bg-dark:hover, a.bg-dark:focus, button.bg-dark:hover, button.bg-dark:focus {
	background-color: #1d2124 !important;
}
.bg-white {
	background-color: #ffffff !important;
}
.bg-transparent {
	background-color: transparent !important;
}

.bg-primary, .label-primary, .bg-primary a, .label-primary a {
	color: #ffffff !important;
}
.bg-secondary, .bg-secondary a {
	color: #ffffff !important;
}
.bg-success, .alert-success, .label-success, .bg-success a, .alert-success a, .label-success a {
	color: #ffffff !important;
}
.bg-info, .alert-info, .label-info, .bg-info a, .alert-info a, .label-info a {
	color: #ffffff !important;
}
.bg-warning, .alert-warning, .label-warning, .bg-warning a, .alert-warning a, .label-warning a {
	color: #1F2D3D !important;
}
.bg-danger, .alert-danger, .alert-error, .label-danger, .bg-danger a, .alert-danger a, .alert-error a, .label-danger a {
	color: #ffffff !important;
}
.bg-light, .bg-light a {
	color: #1F2D3D !important;
}
.bg-dark, .bg-dark a {
	color: #ffffff !important;
}
.bg-gray {
	color: #000;
	background-color: #adb5bd;
}
.bg-gray-light {
	background-color: #f2f4f5;
	color: #1F2D3D !important;
}
.bg-black {
	background-color: #000;
	color: #ffffff !important;
}
.bg-white {
	background-color: #ffffff;
	color: #1F2D3D !important;
}
[class^="bg-"].disabled {
	opacity: .65;
}


tbody {
    font-size: 12pt;
}
table .badge {
    font-weight: bold !important;
}

input:disabled, button:disabled, select:disabled, textarea:disabled a:disabled option:disabled {
    pointer-events: unset !important;
    cursor: not-allowed !important;
}

input[type="text"]:read-only {
    cursor: not-allowed;
    background-color: var(--bs-gray-200) !important;
    opacity: 1;
}

.select2-container .select2-selection--multiple .select2-search__field {
    height: 25px;
}

.input-group .select2-container , .iti {
    flex-grow: 1;
}

.has-error{
    border-color: #f84949 !important;
}

.invalid-feedback{
    display: block !important;
    font-weight: bold !important;
    font-size: 90% !important;
}

.progress {
    direction: ltr;
    width: 100%;
    position: relative;
}

.usage{
    height: 2.8em;
    background: #373737;
}
.progress::before {
    content: attr(data-label);
    position: absolute;
    text-align: center;
    top: 5px !important;
    left: 0;
    right: 0;
    font-weight: 600;
    font-size: 12px;
    font-family: Arial !important;
    color: var(--label-color) !important;
    z-index: 1000;
}


textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus,
.form-control:focus,
.uneditable-input:focus {
  border-color: rgba(104, 135, 239, 0.8) !important;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 5px rgba(104, 135, 239, 0.6) !important;
  outline: 0 none;
}


.noti-icon {
    position: relative;
    cursor: pointer;
    display: inline-block;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

tr td .badge{
    padding: 8px;
}

.text-blue{
    color: blue !important;
}

.text-red{
    color: red !important;
}

.text-purple{
    color: purple !important;
}

.text-green{
    color: green !important;
}

.text-orange{
    color: orange !important;
}

.winbox-url-bg{
    display: inline-flex;
    padding: 5px;
    background-color: #070f29;
    border-radius: 5px;
    justify-content: space-between;
    align-items: baseline;
    flex-basis: fit-content;
    color:white;
}
.winbox-url-bg > .copy-text{
    margin-inline-end:5px;
    margin-inline-start: 5px;
    color: #d0ff00;
}
.copy-to-clipboard{
    display: inline-block;
    outline: 0;
    border: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 4px;
    font-size: 13px;
    height: 25px;
    background-color: #9147ff;
    color: white;
    padding: 0 10px;
}
.copy-to-clipboard i{
    color: white !important;
}
.copy-to-clipboard:hover {
    background-color: #772ce8;
}

.page-content{
    min-height: 100vh;
}

.maintenance_mode {
    border-bottom: solid 2px #2a304285;
    background-color: #dc3545;
    text-align: center;
    padding: 5px;
    top: 70px;
    position: relative;
    }

.maintenance_mode > span {
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
    font-size: 12pt;
    font-weight: bold;
    color: white;
}

.whatsapp_float{
	position:fixed;
	width:60px;
	height:60px;
	bottom:45px;
	left:35px;
	background-color:#28a745;
	color:#FFF;
	border-radius:50px;
	text-align:center;
    font-size:30px;
	box-shadow: 2px 2px 3px #2020205e;
    z-index:10000000000;
}

.whatsapp_float_icon{
	margin-top: 8px;
    font-size: 45px;
}

.notification-icon{
    color: #148ea1;
}

.notification-icon > i{
    font-size: 35px;
}


.text-bold{
    font-weight: bold !important;
}

/* loader Style */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.loader-msg {
    margin-top: 35px;
    font-weight: bold;
    font-size: 14pt;
    text-align: center;
    color: white;
}
.loader {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    border: 5px solid;
    border-color: #FFF #FFF transparent transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
.loader::after,.loader::before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border: 5px solid;
    border-color: transparent transparent #ff0000 #FF3D00;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotationBack 0.5s linear infinite;
    transform-origin: center center;
}
.loader::before {
    width: 35px;
    height: 35px;
    border-color: #FFF #FFF transparent transparent;
    animation: rotation 1.5s linear infinite;
}
@keyframes rotation {
    0% {
    transform: rotate(0deg);
    }
    100% {
    transform: rotate(360deg);
    }
}
@keyframes rotationBack {
    0% {
        transform: rotate(0deg);
        }
    100% {
        transform: rotate(-360deg);
    }
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}
.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
}
.separator:not(:empty)::before {
    margin-right: .25em;
}
.separator:not(:empty)::after {
    margin-left: .25em;
}

/*  Card styles */
#preview-container {
    border:1px solid #ddd;
    padding:20px;
    height: 90%;
    direction: ltr;
}

#preview-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

#scale-wrapper {
    transform-origin: center center;
    width: fit-content;
    height: fit-content;
}

#card-container {
    position: relative;
    margin: 0 auto;
    direction: ltr !important;
    width: 300px;
    height: 170px;
    background-color: #f5f5f5;
    background-repeat: no-repeat;
    outline: 1px dashed grey;
    background-size: 100% 100%;
}
.cardItems {
    font-size: 25px;
    color: #000000;
    font-weight: bold;
    position: absolute;
    font-family: sans-serif;
    touch-action: none;
    user-select: none;
    line-height: 1 !important;
    letter-spacing: 2px;
}
#username{
    color: #8000FF;
}
#password{
    color: #000000;
}
#price{
    color: #FF0080;
}

.card-preview-wrapper {
    width: 100%;
    max-width: 350px;      /* نفس العرض اللي اخترته */
    height: 220px;         /* ← اجرب 220 أو 250 حسب شكل كارتك */
    margin: 0 auto 20px;
    display: flex;
    align-items: center;   /* المهم! بيخلي الكارت في النص عمودي */
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.preview-container {
    border:1px solid #ddd;
    padding:20px;
    height: 90%;
    direction: ltr;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.scale-wrapper {
    transform-origin: center center;
    width: fit-content;
    height: fit-content;
}

.card-container {
    position: relative;
    margin: 0 auto;
    direction: ltr !important;
    width: 300px;
    height: 170px;
    background-color: #f5f5f5;
    background-repeat: no-repeat;
    outline: 1px dashed grey;
    background-size: 100% 100%;
}
.cardItems {
    font-size: 25px;
    color: #000000;
    font-weight: bold;
    position: absolute;
    font-family: sans-serif;
    touch-action: none;
    user-select: none;
    line-height: 1 !important;
    letter-spacing: 2px;
}
.cardItems .username{
    color: #8000FF;
}
.cardItems .password{
    color: #000000;
}
.cardItems .price{
    color: #FF0080;
}
