@import url('https://fonts.googleapis.com/css?family=Khmer');

:root {
    --api_theme_color_1: #f44336;
    --api_theme_color_2: #cc4125;
    --api_theme_color_3: #2e9cc3;
    --api_theme_color_4: #29b8eb;
    --api_theme_color_normal: #323d47;
    --api_theme_color_big: #505d69;
    --api_theme_color_large: #505d69;
    --api_color_success: #5cb85c;
    --api_color_primary: #337ab7;
    --api_color_info: #5bc0de;
    --api_color_warning: #f0ad4e;
    --api_color_danger: #d9534f;
    --api_color_black: #000;
}

.api_big {
    font-family: 'Nunito', 'khmer', sans-serif !important;
    color: var(--api_theme_color_big);
    font-size:15px;
    font-weight: 600;
    line-height:1.5em;
}
.api_normal {
    font-family: 'Nunito', 'khmer', sans-serif !important;
    color: var(--api_theme_color_normal);
    font-size:1rem;
    font-weight:normal;
    word-wrap: break-word;
    word-break:keep-all;
    line-height:1.4em;
}

#sidebar-menu ul li a {
    font-family: 'Nunito', 'khmer', sans-serif !important;
    font-size:1rem !important;
}


.navbar-brand-box {
    padding-left: 0px !important;
    text-align: left !important;
}



.api_label_warning {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-warning-rgb), var(--bs-bg-opacity)) !important;
    color:#fff;
    border-radius: 2px;
    border: none;
    cursor:default;
    font-size: .8125rem;
    margin: 5px 7px;
    padding: 5px 5px;
    text-align: center;
}

.api_label_danger {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-danger-rgb), var(--bs-bg-opacity)) !important;
    color:#fff;
    border-radius: 2px;
    border: none;
    cursor:default;
    font-size: .8125rem;
    margin: 5px 7px;
    padding: 5px 5px;
    text-align: center;
}

.api_label_success {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-success-rgb), var(--bs-bg-opacity)) !important;
    color:#fff;
    border-radius: 2px;
    border: none;
    cursor:default;
    font-size: .8125rem;
    margin: 5px 7px;
    padding: 5px 5px;
    text-align: center;
}

.api_label_info {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
    color:#fff;
    border-radius: 2px;
    border: none;
    cursor:default;
    font-size: .8125rem;
    margin: 5px 7px;
    padding: 5px 5px;
    text-align: center;
}

.api_well {
    border: 1px solid #ddd;
    background-color: #f6f6f6;
    padding:15px;
    padding-top:20px !important;
}

.api_footer_right, .api_footer_left {
    padding:10px;
}

.api_footer_right {
    min-width:200px;
}


.api_list_view_updating_row {
  animation: api_list_view_updating_row 1s infinite;
}

@keyframes api_list_view_updating_row {
  0% {
    background-color: white;
  }
  25% {
    background-color: #85ffa2;
  }
  50% {
    background-color: white;
  }
  75% {
    background-color: #85ffa2;
  }
  100% {
    background-color: white;
  }
}

.api_list_view_deleting_row {
  animation: api_list_view_deleting_row 1s infinite;
}

@keyframes api_list_view_deleting_row {
  0% {
    background-color: white;
  }
  25% {
    background-color: #ffaaaa;
  }
  50% {
    background-color: white;
  }
  75% {
    background-color: #ffaaaa;
  }
  100% {
    background-color: white;
  }
}

.api_list_view_table tr:nth-child(even) {
    background-color: #eee;;
}
.api_list_view_table tr:nth-child(odd) {
    background-color: #fff;
}




/* Container fixed at top */
#ajax-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1000001;
    display: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* The actual progress bar with glow effect */
#ajax-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #45a049, #66bb6a);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

/* Loading animation styles - Enhanced smooth version */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#loading.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Animated logo/image container */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-logo {
    width:100px;
    height:100px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Enhanced spinner */
.loading-spinner {
    width: 70px;
    height: 70px;
    border: 3px solid rgba(52, 152, 219, 0.1);
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading text with dots animation */
.loading-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.loading-dots::after {
    content: "";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ""; }
    40% { content: "."; }
    60% { content: ".."; }
    80%, 100% { content: "..."; }
}

/* Smooth page content fade-in */
body {
    opacity: 0;
    animation: bodyFadeIn 0.5s ease-out 0.3s forwards;
}

@keyframes bodyFadeIn {
    to {
        opacity: 1;
    }
}

/* Form submit loading overlay */
.form-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fallback for older browsers */
.position-fixed { position: fixed; }
.start-0 { left: 0; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.bg-white { background: white; }
.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }


.api_icon_rotate {
  display: inline-block;
  animation: api-rotate-360 0.3s linear infinite;
}
@keyframes api-rotate-360 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#api_button_block .btn{
    min-width:400px !important;
    max-width:400px !important;
    width:400px !important;
}