@import url('https://fonts.googleapis.com/css2?family=Battambang:wght@100;300;400;700;900&family=Hanuman:wght@100;300;400;700;900&family=Kantumruy+Pro:ital,wght@0,100..700;1,100..700&family=Koulen&family=Noto+Sans+Khmer:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{
    --color-primary: #6C9BCF;
    --color-danger: #FF0060;
    --color-success: #1B9C85;
    --color-warning: #F7D060;
    --color-white: #fff;
    --color-info-dark: #7d8da1;
    --color-dark: #363949;
    --color-light: rgba (132, 139, 200, 0.18);
    --color-dark-variant: #677483;
    --color-background: #f6f6f9;
    --card-border-radius: 2rem;
    --border-radius-1: 0.4rem;
    --border-radius-2: 1.2rem;
    --card-padding: 1.8rem;
    --padding-1: 1.2rem;
    --box-shadow: 0 2rem 3rem var(--color-light);
    --lightpink: rgb(232, 133, 149);
    --darkred: #CC2B52;
    --lightred: #CC2B52;
}

.title-top {
    color: var(--darkred);
    font-size: 18px;
    font-weight: 900;
}

.form-input {
    background-color: rgb(239, 239, 239);
}

.input-container {
    position: relative;
    width: 250px;
}

.input-container span {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #888;
    font-size: 16px;
}

.input-container input {
    padding-left: 28px;
}

.dark-mode-variables{
    --color-background: #181a1e;
    --color-white: #202528;
    --color-dark: #edeffd;
    --color-dark-variant: #a3bdcc;
    --color-light: rgba(0, 0, 0, 0.4);
    --box-shadow: 0 2rem 3rem var(--color-light);
}

.tone {
    color: var(--darkred);
}

.lightred {
    background-color: var(--lightred);
    color: white;
}

body{
   font-family: Battambang;
}

.kantumruy-bold {
    font-family: Kantumruy Pro;
    font-weight: bold;
  
}

.kantumruy {
    font-family: Kantumruy Pro;
}

.battambang {
    font-family: Battambang;
}

.dashboard-view {
    display: flex;
    gap: 12px;
}

.dashboard-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow 0.3s;
}

.dashboard-table {
    flex-direction: column;
    width: 250%;
}

.scrollable-div {
    overflow-y: scroll;
    height: 500px;
}

caption {
    caption-side: top;  /* Places caption on top */
    font-weight: bold;
    font-size: 1.2em;
    text-align: left;
    margin-bottom: 8px;
    color: black;
}


.dashboard-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.dashboard-icon {
    font-size: 36px;
   
}

.dashboard-details {
    text-align: right;
}

.dashboard-details h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.dashboard-details p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.form-control{
    border: 1px solid rgb(216, 216, 216);
    border-radius: 6px;
}

.mylayout{
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.sidebar{
    width: 18%;
    background-color: var(--darkred);
    transition: all 0.3s ease;
    position: relative;
}


.sidebar .logo{
    font-family: 'Kantumruy Pro';
    font-weight: bold;
    font-size: larger;
    color: white;
    padding: var(--card-padding);
    
}

.sidebar .sidebar-menu .logout_menu {
    position: absolute;
    bottom: 40px;
    width: 100%;
}

.sidebar .logo .toggle-btn {
    display: flex;
    justify-content: space-between;
    gap: 1.4rem;
    align-items: center;
}

.sidebar .logo .toggle-btn h1 {
    font-size: 1rem;
}

.content-side{
    width: 100%;
}

.menu-toggle{
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.menu-toggle .close{
    display: none;
}

.sidebar-menu{
    display: flex;
    flex-direction: column;
    background-color: var(--darkred);
    box-shadow: var(--box-shadow);
    border-radius: 15px;
    height: 88vh;
    position: relative;
    top: 1.5rem;
    transition: all 0.3s ease;
}

.sidebar-menu:hover{
    box-shadow: none;
}

.sidebar-menu a{
    font-family: 'Kantumruy Pro', sans-serif;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: white;
    height: 3.7rem;
    gap: 1rem;
    position: relative;
    padding-left: 2rem;
    transition: all 0.3s ease;
    width: 100%;
    border-radius: 50px 0 0 50px;
}

.sidebar-menu a span{
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

/* .sidebar-menu a:last-child{
    position: absolute;
    bottom: 2rem;
    width: 100%;
} */


.sidebar-menu a.active{
    width: 100%;
    color: var(--color-primary);
    background-color: var(--color-light);
    margin-left: 0;
}

.sidebar-menu a.active::before{
    content: '';
    width: 6px;
    height: 18px;
    background-color: var(--color-primary);
}

.sidebar-menu a.active span{
    color: var(--color-primary);
    margin-left: calc(1rem - 3px);
}

.sidebar-menu a:hover{
    color: var(--darkred);
    background-color: white;
}

.sidebar-menu a:hover span{
    margin-left: 0.6rem;
}


.menu-button{
    display: none;
}

.table-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-nav form {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    
}

.no-wrap {
    white-space: nowrap;
}

.student-info tr th {
    width: 40%;
}

table{
    font-family: 'Kantumruy Pro', sans-serif;
    color: #677483;
    
}

.table-data td {
    word-wrap: break-word;
    white-space: normal; /* Ensure text wraps */
}

/* Optional: Limit the height of the table rows and truncate text */
.table-data td {
    max-width: 150px; /* Adjust this value as needed */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* Disable text wrapping for truncation */
}

/* Add horizontal scrolling */
/* .table-responsive {
    overflow-x: auto;
} */



.table-view th{
    width: 200px;
}

/*upload image page*/
.uploader {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}
.drop-zone {
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.drop-zone:hover, .drop-zone.dragover {
    border-color: #3B82F6;
    background-color: #EFF6FF;
}
.icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}
.drop-text {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}
.file-types {
    font-size: 12px;
    color: #6B7280;
}
#preview-image {
    max-width: 100%;
    max-height: 200px;
    margin-top: 16px;
    border-radius: 8px;
    display: none;
}

/*end*/

/* Basic setup for the ticker container */
.ticker {
    width: 52%;                  /* Full width */
    overflow: hidden;             /* Hide overflow */
    background-color: var(--darkred);       /* Dark background like news tickers */
    color: #fff;                  /* White text */
    font-size: 20px;              /* Larger text for visibility */
    padding: 10px;                /* Padding for spacing */
    box-sizing: border-box;
    position: fixed;
    bottom: 20px;
    border-radius: 10px;

  }
  
  /* Ticker content styling */
  .ticker__content {
 
    overflow: hidden;
    display: inline-block;
    white-space: nowrap;       
    position: relative;
     /* Scrolls the text */
  }

  .mysearchform {
    display: flex;
  }

  .myoffcanvas {
    background-color: var(--darkred);
  }
  
  .myfilter {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  caption {
    /* background-color: #7d8da1; */
    font-size: 20px;
    padding: 5px;
    color: var(--darkred);
    border-bottom: 1px solid var(--darkred);
  }
  /* Keyframes for scrolling effect */
  @keyframes scroll {
    0% {
       
      transform: translateX(10%); /* Starts off screen to the right */
    }
    100% {
        
      transform: translateX(-100%); /* Ends off screen to the left */
    }
  }
  


@media screen and (max-width: 1200px){
    .dashboard-view {
        flex-direction: column;
        margin: 10px;
    }

    .sidebar{
        display: none;
    }
    .content-side{
        width: 100%;
    }

    .menu-button{
        display: block;
    }

    .table-nav {
       display: block;
      width: 100%;
    }

    .table-nav form {
        width: 100%;
    }

    .mysearchform {
        display: none;
    }

    .ticker {
        display: none;
    }
    .myfilter {
        flex-direction: column;
        justify-content:flex-start;
        align-items: normal;
        gap: 10px;
    }

   .dashboard-table {
        width: 100%;
        white-space: nowrap;
        overflow-x: scroll;
        justify-content: flex-start;
        align-items: normal;
       
   }

   .scrollable-div {
    overflow-y: none;
    height: 100%;

}

    
}

@media screen and (max-width: 598px) {
    .search-input {
        display: none;
    }
    .btn-search {
        display: none;
    }
    .user-profile {
        display: none;
    }

    .table-nav form {
        flex-direction: column;
        justify-content: start;
        
    }
}