/* /common/ui/ui.css */

:root {
    /* Base font and sizing */
    --font-size: 16px;
    --font-family: 'Arial', sans-serif;
    
    /* Layout and spacing */
    --menu-padding: 15px 0;
    --menu-item-margin: 15px;
    --menu-item-padding: 10px 15px;
    --menu-item-padding-collapsed: 12px 15px;
    --menu-link-padding: 8px 15px;
    --menu-container-padding: 0 15px;
    --menu-collapsed-padding: 15px 0;
    --page-container-padding-top: 80px;
    --page-container-padding-top-large: 90px;
    
    /* Border radius */
    --border-radius: 4px;
    --border-radius-large: 5px;
    --border-radius-button: 0.5rem;
    
    /* Z-index values */
    --z-index-menu: 1000;
    --z-index-menu-collapsed: 999;
    --z-index-overlay: 9900;
    --z-index-modal: 1055;
    --z-index-loading: 9990;
    
    /* Box shadows */
    --box-shadow-menu: 0 2px 6px rgba(0, 0, 0, 0.15);
    --box-shadow-menu-strong: 0 2px 6px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    
    /* Menu toggle */
    --menu-toggle-size: 40px;
    --menu-toggle-border-radius: 4px;
    
    /* Language menu */
    --lang-menu-min-width: 150px;
    --lang-menu-max-height: 300px;
    --lang-menu-padding: 5px 0;
    --lang-menu-scrollbar-width: 8px;
    
    /* Modal dimensions */
    --modal-max-width: 400px;
    --modal-padding: 20px;
    --modal-margin: 10px;
    --modal-button-margin: 0 5px;
    
    /* Image preview */
    --image-preview-max-width: 90%;
    --image-preview-max-height: 90%;
  
  /* Spinner */
    --spinner-size: 1.5rem;
    --spinner-size-large: 3rem;
    --spinner-border-width: 4px;
    --spinner-border-width-large: 6px;
    --spinner-animation: spin 1s linear infinite;
    
    /* Button sizing */
    --btn-primary-padding: 0.75rem 1.5rem;
    --btn-secondary-padding: 0.5rem 1rem;
    
    /* Alert padding */
    --alert-padding: 0.75rem;
    --alert-margin-bottom: 1rem;
    
    /* Overlay backgrounds */
    --overlay-bg-light: rgba(0, 0, 0, 0.5);
    --overlay-bg-dark: rgba(0, 0, 0, 0.8);
    --overlay-bg-white: rgba(255, 255, 255, 0.1);
    
    /* Text colors */
    --text-white: #ffffff;
    --text-black: #000000;
    --text-muted: #4b5563;
    
    /* Background colors */
    --bg-white: #ffffff;
    --bg-transparent: transparent;
    
    /* Border colors */
    --border-white-light: rgba(255, 255, 255, 0.1);
    
    /* Font weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    
    /* Font sizes */
    --font-size-small: 14px;
    --font-size-large: 1.5rem;
    
    /* Line heights */
    --line-height-normal: 1.5;
    
    /* Missing variables */
    --primary-color: #0cb138;
    --icon-margin-right: 8px;
    --collapsed-menu-min-width: 200px;
    --collapsed-menu-right-offset: 15px;
  }



.mc-menu{
    background-color: var(--primary-color);
    box-shadow: var(--box-shadow-menu);
    padding: var(--menu-padding);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: var(--z-index-menu);
    font-family: var(--font-family);
}

.page-container {
    padding-top: var(--page-container-padding-top);
    align-items: center;
}

.mc-menu-wrapper {
    width: 100%;
}

.mc-menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: var(--menu-container-padding);
}

.mc-menu-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    position: static;
}

.mc-menu-brand img {
    max-height: 50px;
}

.mc-menu-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

.mc-menu-toggle {
    display: none;
    cursor: pointer;
    width: var(--menu-toggle-size);
    height: var(--menu-toggle-size);
    border: none;
    background-color: var(--bg-transparent);
    border-radius: var(--menu-toggle-border-radius);
    justify-content: center;
    align-items: center;
}

.mc-menu-toggle svg path {
    stroke: var(--text-white);
}

.mc-menu-item {
    display: flex;
    align-items: center;
    margin-right: var(--menu-item-margin);
}

.mc-menu-item:last-child {
    margin-right: 0;
}

.mc-lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.mc-menu-link {
    color: var(--text-white);
    padding: var(--menu-item-padding);
    text-decoration: none;
    font-family: var(--font-family);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
    transition: color var(--transition-fast), background-color var(--transition-fast);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    outline: none;
}

.mc-menu-link:hover {
    color: var(--primary-color);
    background-color: var(--overlay-bg-white);
}

.mc-lang-toggle {
    background: none;
    border: none;
    color: var(--text-white);
    padding: var(--menu-item-padding);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
    transition: color var(--transition-fast), background-color var(--transition-fast);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    text-decoration: none;
    outline: none;
}

.mc-lang-toggle:hover {
    color: var(--primary-color);
    background-color: var(--overlay-bg-white);
}

.mc-lang-toggle .fa-globe {
    margin-right: var(--icon-margin-right);
}

.mc-lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--primary-color);
    list-style: none;
    margin: 0;
    padding: var(--lang-menu-padding);
    z-index: var(--z-index-menu);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-menu-strong);
    min-width: var(--lang-menu-min-width);
    max-width: 100%;
    max-height: var(--lang-menu-max-height);
    overflow-y: scroll;
}

.mc-lang-menu::-webkit-scrollbar {
    width: var(--lang-menu-scrollbar-width);
}

.mc-lang-menu::-webkit-scrollbar-track {
    background: var(--primary-color);
    border-radius: var(--border-radius);
}

.mc-lang-menu::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--border-radius);
}

.mc-lang-menu::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.mc-lang-menu.active {
    display: block;
}

.mc-lang-item {
    margin: 0;
}

.mc-lang-item form {
    margin: 0;
}

.mc-lang-link {
    color: var(--text-white);
    padding: var(--menu-link-padding);
    text-decoration: none;
    font-family: var(--font-family);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast), background-color var(--transition-fast);
    display: block;
    outline: none;
}

.mc-lang-link:hover {
    color: var(--primary-color);
    background-color: var(--overlay-bg-white);
}

.mc-lang-more, .mc-lang-less {
    display: block;
}

.mc-lang-secondary {
    display: none;
}

.overlay {
    background-color: var(--overlay-bg-light);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-index-overlay);
    justify-content: center;
    align-items: center;
}

.overlay .spinner {
    width: var(--spinner-size-large);
    height: var(--spinner-size-large);
    border-width: var(--spinner-border-width-large);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading Overlay */
.loading-overlay {
    background-color: var(--overlay-bg-dark);
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-index-loading);
    justify-content: center;
    align-items: center;
}

.loading-text {
    color: var(--text-white);
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-semibold);
}

.mc-menu-collapsed .mc-menu-list.active {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: auto;
    min-width: var(--collapsed-menu-min-width);
    background-color: var(--primary-color);
    padding: var(--menu-collapsed-padding);
    box-shadow: var(--box-shadow-menu);
    z-index: var(--z-index-menu-collapsed);
}

.mc-menu-collapsed .mc-menu-item {
    text-align: right;
    margin: 0;
    padding-right: var(--collapsed-menu-right-offset);
}

.mc-menu-collapsed .mc-menu-link {
    padding: var(--menu-item-padding-collapsed);
    border-bottom: 1px solid var(--border-white-light);
    justify-content: flex-end;
}

.mc-menu-collapsed .mc-lang-switcher {
    text-align: right;
    padding-right: var(--collapsed-menu-right-offset);
}

.mc-menu-collapsed .mc-lang-menu {
    right: var(--collapsed-menu-right-offset);
    left: auto;
}

/* Image Preview Modal Styles */
.image-preview-modal {
    background: var(--overlay-bg-dark);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: var(--z-index-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.image-preview-modal img {
    max-width: var(--image-preview-max-width);
    max-height: var(--image-preview-max-height);
    object-fit: contain;
    cursor: pointer;
}

/* Message Modal Styles */
.message-modal {
    background: var(--overlay-bg-dark);
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.message-modal-content {
    background: var(--bg-white);
    padding: var(--modal-padding);
    border-radius: var(--border-radius-large);
    max-width: var(--modal-max-width);
    text-align: center;
}

.message-modal-buttons {
    margin-top: var(--modal-margin);
}

.message-modal-buttons button {
    margin: var(--modal-button-margin);
}

/* Confirmation Modal Styles */
.confirm-modal {
    background: var(--overlay-bg-dark);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.confirm-modal-content {
    background: var(--bg-white);
    padding: var(--modal-padding);
    border-radius: var(--border-radius-large);
    max-width: var(--modal-max-width);
    text-align: center;
}

.confirm-modal-buttons {
    margin-top: var(--modal-margin);
}

.confirm-modal-buttons button {
    margin: var(--modal-button-margin);
}

/* Buttons */
.btn-primary {
    background-color: var(--button-background);
    color: var(--button-text-color);
    padding: var(--btn-primary-padding);
    border: none;
    border-radius: var(--border-radius-button);
    font-weight: var(--font-weight-semibold);
    transition: background-color var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--button-hover-background);
}

.btn-primary:disabled {
    background-color: var(--button-disabled-background);
}

.btn-link {
    color: var(--button-link-color);
    font-weight: var(--font-weight-medium);
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--button-link-hover-color);
}

.btn-secondary {
    background-color: var(--button-secondary-background);
    color: var(--button-secondary-text-color);
    padding: var(--btn-secondary-padding);
    border: none;
    border-radius: var(--border-radius-button);
    font-weight: var(--font-weight-semibold);
    transition: background-color var(--transition-fast);
}

.btn-secondary:hover {
    background-color: var(--button-secondary-hover-background);
}

.btn-secondary:disabled {
    background-color: var(--button-secondary-disabled-background);
}

/* Alerts */
.alert-danger {
    background-color: var(--alert-danger-background);
    color: var(--alert-danger-text-color);
    padding: var(--alert-padding);
    border-radius: var(--border-radius-button);
    margin-bottom: var(--alert-margin-bottom);
}

.alert-success {
    background-color: var(--alert-success-background);
    color: var(--alert-success-text-color);
    padding: var(--alert-padding);
    border-radius: var(--border-radius-button);
    margin-bottom: var(--alert-margin-bottom);
}

/* Spinner */
.spinner {
    border: var(--spinner-border-width) solid var(--spinner-border-color);
    border-top: var(--spinner-border-width) solid var(--spinner-border-top-color);
    display: none;
    border-radius: 50%;
    width: var(--spinner-size);
    height: var(--spinner-size);
    animation: var(--spinner-animation);
}






