/* Modern CSS - Prefix: x- */

/* Body */
body {
    background: #FFFFFF;
    font-size: .80em;
    font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
    margin: 0px;
    padding: 0px;
    color: #000000;
}

/* Section */
.x-section {
  margin-bottom: 24px;
  padding: 16px;
  background-color: #fff7ed;
  border-radius: 8px;
  border: 1px solid #fed7aa;
}

.x-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #9a3412;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* Buttons - Base */
.x-btn-normal,
.x-btn-mini {
  display: inline-block;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.x-btn-normal:hover,
.x-btn-mini:hover {
  opacity: 0.85;
}

/* Normal Buttons */
.x-btn-normal {
  padding: 10px 24px;
  font-size: 14px;
  margin: 5px;
}

/* Mini Buttons - for table rows */
.x-btn-mini {
  padding: 4px 10px;
  font-size: 14px;
  border-radius: 4px;
}

/* Colors */
.x-btn-blue { background-color: #ea580c; }
.x-btn-green { background-color: #16a34a; }
.x-btn-red { background-color: #dc2626; }
.x-btn-orange { background-color: #ea580c; }
.x-btn-purple { background-color: #9333ea; }
.x-btn-teal { background-color: #0d9488; }
.x-btn-pink { background-color: #db2777; }
.x-btn-indigo { background-color: #4f46e5; }
.x-btn-cyan { background-color: #0891b2; }
.x-btn-gray { background-color: #6b7280; }

/* Input Text Boxes - Base */
.x-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #431407;
}

.x-input-normal,
.x-input-sm,
.x-input-lg {
  border: 1px solid #fed7aa;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  max-width: 100%;
}

.x-input-normal:focus,
.x-input-sm:focus,
.x-input-lg:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

/* Normal Input */
.x-input-normal {
  padding: 8px 12px;
  font-size: 14px;
  width: 100%;
  background-color: #fff;
}

/* Small Input - for tables */
.x-input-sm {
  padding: 4px 8px;
  font-size: 14px;
  width: 100%;
  background-color: #fff;
}

/* Large Input - for main forms */
.x-input-lg {
  padding: 12px 16px;
  font-size: 14px;
  width: 100%;
  background-color: #fff;
}

/* States */
.x-input-disabled {
  background-color: #fef3c7;
  color: #92400e;
  cursor: not-allowed;
}

.x-input-error {
  border-color: #dc2626;
}

.x-input-error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.x-input-success {
  border-color: #16a34a;
}

.x-input-success:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

/* ============================================
   Site.Master Layout Styles - Orange Theme
   ============================================ */

/* Top Bar */
.x-topbar {
  background: linear-gradient(135deg, #7c2d12 0%, #9a3412 100%);
  color: #fff;
  padding: 10px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.x-topbar a {
  color: #fed7aa;
  text-decoration: none;
  font-weight: 600;
}

.x-topbar a:hover {
  color: #fff;
}

/* Left Sidebar */
.x-sidebar {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 12px 0;
  min-height: 400px;
  border: 1px solid #fed7aa;
}

/* Sidebar Menu Section */
.x-sidebar-section {
  padding: 8px 16px 4px;
  font-size: 14px;
  font-weight: 700;
  color: #9a3412;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sidebar Menu Links */
.x-sidebar-link {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: #431407;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}

.x-sidebar-link:hover {
  background-color: #fff7ed;
  color: #ea580c;
  text-decoration: none;
}

/* Sidebar Selected */
.x-sidebar-selected {
  background-color: #ffedd5;
  border-left: 3px solid #ea580c;
  color: #ea580c;
  font-weight: 600;
}

/* Main Content */
.x-main {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 20px;
  min-height: 500px;
  border: 1px solid #fed7aa;
}

/* Footer */
.x-footer {
  background: linear-gradient(135deg, #7c2d12 0%, #431407 100%);
  color: #fed7aa;
  padding: 16px 20px;
  text-align: center;
  font-size: 14px;
}

.x-footer a {
  color: #fb923c;
  text-decoration: none;
}

.x-footer a:hover {
  color: #fff;
}

/* Download Link */
.x-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  color: #ea580c;
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.x-download:hover {
  background-color: #ffedd5;
  border-color: #ea580c;
  color: #9a3412;
  text-decoration: none;
}

.x-download-icon {
  font-size: 16px;
}

.x-download-name {
  font-weight: 600;
}

.x-download-size {
  font-size: 14px;
  color: #9a3412;
}

/* ============================================
   Content Boxes (from Site9 box2)
   ============================================ */
.x-box2-header,
.x-box2-body {
  margin: 0;
  padding: 10px 14px;
}

.x-box2-header {
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  border-bottom: 2px solid #ea580c;
  font-size: 15px;
  font-weight: 700;
  color: #9a3412;
}

.x-box2-body {
  background-color: #fff;
  border: 1px solid #fed7aa;
  font-size: 14px;
  color: #000;
  line-height: 1.6;
}

/* ============================================
   Links (from Site9 normallink)
   ============================================ */
.x-link {
  color: #ea580c;
  text-decoration: underline;
  font-size: 14px;
  cursor: pointer;
}

.x-link:hover {
  color: #9a3412;
  text-decoration: none;
}

/* ============================================
   Messages & Errors
   ============================================ */
.x-msg {
  color: #1e40af;
  font-size: 14px;
}

.x-err {
  color: #dc2626 !important;
  font-size: 14px;
}

.x-notetxt {
  color: #0d9488;
  font-size: 14px;
}

.x-displaymsg,
.x-displayerr,
.x-addzone,
.x-summaryzone {
  padding: 10px;
  font-size: 14px;
}

.x-displaymsg {
  border: 1px solid #93c5fd;
  background-color: #dbeafe;
  color: #1e40af;
}

.x-displayerr {
  border: 1px solid #f87171;
  background-color: #fee2e2;
  color: #991b1b;
}

.x-addzone {
  border: 1px solid #f87171;
  background-color: #f1f5f9;
  color: #000;
}

.x-summaryzone {
  border: 1px solid #fed7aa;
  background-color: #fff7ed;
  color: #000;
}

/* ============================================
   Data Grid (from Site9 grid1)
   ============================================ */
.x-grid-header,
.x-grid-row1,
.x-grid-row2,
.x-grid-rowselected,
.x-grid-cell {
  font-size: 14px;
}

.x-grid-header {
  color: #431407;
  background-color: #fed7aa;
  font-weight: 600;
}

.x-grid-row1 {
  color: #431407;
  background-color: #fff;
}

.x-grid-row2 {
  color: #431407;
  background-color: #fef3c7;
}

.x-grid-row1:hover,
.x-grid-row2:hover,
.x-grid-rowselected {
  border: 1px solid #ea580c;
  background-color: #ffedd5;
}

.x-grid-rowLightBlue {
  color: #431407;
  background-color: #e0f2fe;
}

.x-grid-rowLightPink {
  color: #431407;
  background-color: #fce7f3;
}

.x-grid-rowLightBlue:hover,
.x-grid-rowLightPink:hover {
  border: 1px solid #ea580c;
  background-color: #ffedd5;
}

.x-grid-cell {
  padding: 6px 8px;
}

/* ============================================
   Password Toggle Button
   ============================================ */
.x-pw-toggle {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 4px;
  color: #9a3412;
}

.x-pw-toggle:hover {
  background-color: #ffedd5;
}

/* ============================================
   Tabs
   ============================================ */
.x-tab-containerG {

    margin: 40px auto;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #fed7aa;
    box-shadow: 0 4px 12px rgba(154, 52, 18, 0.08);
    overflow: hidden;
}


/* ============================================
   Tabs
   ============================================ */
.x-tab-container {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #fed7aa;
    box-shadow: 0 4px 12px rgba(154, 52, 18, 0.08);
    overflow: hidden;
}

.x-tab-header {
  display: flex;
  background: #fff7ed;
  border-bottom: 2px solid #fed7aa;
}

.x-tab-btn {
  flex: 1;
  padding: 14px 16px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #9a3412;
  background: transparent;
  position: relative;
  transition: color 0.2s, background 0.2s;
  display:inline-block;
}

.x-tab-btn::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: #ea580c;
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.x-tab-btn:hover {
  background: #ffedd5;
  color: #7c2d12;
}

.x-tab-btn.x-tab-active {
  color: #ea580c;
  background: #fff;
}

.x-tab-btn.x-tab-active::after {
  transform: scaleX(1);
}

.x-tab-panel {
  display: none;
  padding: 16px;
}

.x-tab-panel.x-tab-active {
  display: block;
}

/* ============================================
   Notes (from Site9 site9_notes)
   ============================================ */
.x-notes {
  padding: 12px 16px;
  background-color: #fef9c3;
  color: #854d0e;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #fde68a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ============================================
   Pagination
   ============================================ */
.action-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lecturer-shared {
  color: #16a34a;
  font-size: 14px;
  font-weight: 600;
}

.lecturer-createby {
  font-size: 13px;
  color: #6b7280;
}

.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.pagination-wrap img {
  height: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.pagination-wrap img:hover {
  opacity: 1;
}

table.pagination-wrap {
  margin: 16px auto 0;
  border: none !important;
}

table.pagination-wrap > tbody > tr > td {
  padding: 0 4px;
  border: none !important;
}

/* ============================================
   Hamburger Button (hidden on desktop)
   ============================================ */
.x-hamburger {
  display: none;
}

/* ============================================
   Sidebar Close Button (hidden on desktop)
   ============================================ */
.x-sidebar-close {
  display: none;
}

/* ============================================
   Sidebar Backdrop (hidden on desktop)
   ============================================ */
.x-sidebar-backdrop {
  display: none;
}

/* ============================================
   Responsive - Mobile (< 600px)
   ============================================ */
@media screen and (max-width: 1200px) {

  /* Hamburger visible */
  .x-hamburger {
    display: inline-block;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 0 12px 0 0;
    vertical-align: middle;
    line-height: 1;
  }

  .x-hamburger:hover {
    color: #fed7aa;
  }

  /* Sidebar becomes fixed overlay */
  .x-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    z-index: 1000;
    border-radius: 0;
    border: none;
    box-shadow: 2px 0 12px rgba(0,0,0,0.2);
    overflow-y: auto;
    transition: left 0.3s ease;
    padding-top: 16px;
  }

  .x-sidebar.x-sidebar-open {
    left: 0;
  }

  /* Close button inside sidebar */
  .x-sidebar-close {
    display: block;
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: #9a3412;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 4px;
  }

  .x-sidebar-close:hover {
    background-color: #ffedd5;
    color: #ea580c;
  }

  /* Backdrop */
  .x-sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }

  .x-sidebar-backdrop.x-sidebar-backdrop-open {
    display: block;
  }

  /* Main content full width */
  .x-main {
    min-height: auto;
  }

  /* Stack layout table */
  .x-layout-table > tbody > tr > td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
  }

  /* Collapse sidebar column but keep it in DOM (sidebar uses position:fixed) */
  .x-layout-table > tbody > tr > td:first-child {
    width: 0 !important;
    padding: 0 !important;
    overflow: visible;
  }

  /* Reduce padding on mobile */
  .x-layout-table {
    padding: 8px !important;
  }
}

/* ============================================
   Modal Overlay (replaces modal20210412 / site9_rightboxmodal)
   ============================================ */
.x-modal-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  overflow: auto;
}

.x-modal-content {
  background-color: #fefefe;
  margin: 40px auto;
  padding: 0;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  max-width: 900px;
  box-shadow: 0 4px 16px rgba(154, 52, 18, 0.15);
}

.x-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: #431407;
  padding: 12px 16px;
  border-bottom: 1px solid #fed7aa;
  background-color: #fff7ed;
}

.x-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #9a3412;
  cursor: pointer;
  padding: 2px 8px;
  line-height: 1;
  border-radius: 4px;
}

.x-modal-close:hover {
  background-color: #ffedd5;
  color: #ea580c;
}



.x_rightboxmodal {
    display: none;
    position: fixed;
    width: 400px;
    font-size: 12px;
    top: 0px;
    right: 0px;
    background-color: #f2f1f1;
    height: 100%;
    overflow-y: auto;
    color: #121111;
    z-index: 111;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.x_rightboxinit {
    display: none;
}

.x_rightbox {
    width: 400px;
    display: inline-block;
    position: fixed;
    font-size: 12px;
    top: 0px;
    right: -400px;
    background-color: #f2f1f1;
    height: 100%;
    overflow-y: auto;
    color: #121111;
    z-index: 111;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-animation-name: animaterightclose;
    -webkit-animation-duration: 0.4s;
    animation-name: animaterightclose;
    animation-duration: 0.4s;
}

.x_rightboxcontent {
    padding: 10px;
}

.x_rightboxshow {
    display: inline-block;
    position: fixed;
    width: 400px;
    font-size: 12px;
    top: 0px;
    right: 0px;
    background-color: #f2f1f1;
    height: 100%;
    overflow-y: auto;
    color: #121111;
    z-index: 111;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-animation-name: animateright;
    -webkit-animation-duration: 0.4s;
    animation-name: animateright;
    animation-duration: 0.4s
}

.x_rightboxclosebtn a {
    float: left;
    padding-right: 10px;
    cursor: pointer;
}

.x_rightboxtitle {
    padding: 10px;
    font-size: 16px;
    border-bottom: solid 1px #adabab;
}

/* Add Animation */
@-webkit-keyframes animateright {
    from {
        right: -100%;
        opacity: 0
    }

    to {
        right: 0;
        opacity: 1
    }
}

@keyframes animateright {
    from {
        right: -100%;
        opacity: 0
    }

    to {
        right: 0;
        opacity: 1
    }
}

@-webkit-keyframes animaterightclose {
    from {
        right: 0px;
        opacity: 1
    }

    to {
        right: -100%;
        opacity: 0
    }
}

@keyframes animaterightclose {
    from {
        right: 0px;
        opacity: 1
    }

    to {
        right: -100%;
        opacity: 0
    }
}
