body, html {
    height: 100%;
    font-family: 'Kanit', cursive !important;
    font-size: 0.95rem !important;
    background-color: #f4f4f4;
}

.bg {
    background: linear-gradient(to bottom right, #003366, #006666); /* ปรับเฉดน้ำเงินเข้ม-เขียว */
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
    clip-path: polygon(0 0, 55% 0, 45% 100%, 0% 100%);
}

.w-60p {
    width: 60px !important;
}
.w-90p {
    width: 90px !important;
}
.w-150p {
    width: 150px !important;
}

.canvas {
    height: 300px !important;
}

.toggle.ios, .toggle-on.ios, .toggle-off.ios { 
    border-radius: 20px; 
    font-weight: 100px;
}
.toggle.ios .toggle-handle { 
    border-radius: 20px; 
}
.toggle-on.btn {
    padding-right: 19px;
    font-weight: 100 !important;
}
.btn {
    font-size: inherit !important;
    background-color: #28a745;
    color: #fff;
    border: none;
}
.btn:hover {
    background-color: #218838;
}

.card, .small-box, .small-box-footer {
    border-radius: 15px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #ffffff;
}

.card h1, .small-box h1 {
    color: #003366;
    font-weight: bold;
}

.rtl {
    direction: rtl !important;
}

/* Responsive tweaks */
@media (max-width: 1400px) {
    .table-responsive-xxl {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive-xxl > .table-bordered {
        border: 0;
    }
    #orders .detail {
        width: 300px !important;
    }
}

@media (max-width: 1200px) {
    .small-box h1 {
        font-size: 1.7rem !important;
    }
}

@media (max-width: 767px) {
    .small-box h1 {
        font-size: 1.4rem !important;
    }
}
.btn-primary {
    background-color: #003366;
    border-color: #003366;
  }
  .btn-primary:hover {
    background-color: #002244;
    border-color: #002244;
  }
  
  .btn-register {
    background-color: #28a745;
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 0.25rem;
    text-align: center;
    display: inline-block;
    font-size: 1rem;
    margin-top: 10px;
    text-decoration: none;
  }
  
  .btn-register:hover {
    background-color: #218838; /* เขียวเข้มขึ้นเล็กน้อยตอน hover */
    color: white;
    text-decoration: none;
  }
  
  
  