/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}


.note-editor.note-frame {
    border-radius: 8px !important;
}


/* USER */

.table-user-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.badge-role {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-label-danger {
    background-color: #00d4ff;
    color: #fff;
}

.bg-label-warning {
    background-color: #ffc107;
    color: #000;
}

.bg-label-info {
    background-color: #17a2b8;
    color: #fff;
}

.action-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin: 0 4px;
    border: 1px solid;
}

.btn-outline-primary {
    border-color: #6366f1;
    color: #6366f1;
}

.btn-outline-primary:hover {
    background-color: #6366f1;
    color: #fff;
}

.btn-outline-danger {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-outline-danger:hover {
    background-color: #ef4444;
    color: #fff;
}

.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fb;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    padding: 16px 20px;
    border: none;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 20px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.table tbody tr {
    background-color: #fff;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

.filter-section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.page-header {
    margin-bottom: 25px;
}

.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.form-select, .form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
}

.form-select:focus, .form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-primary {
    background-color: #6366f1;
    border-color: #6366f1;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #5558e3;
    border-color: #5558e3;
}

.btn-outline-secondary {
    border-color: #e2e8f0;
    color: #64748b;
    border-radius: 8px;
}

.btn-outline-secondary:hover {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    color: #334155;
}

.pagination {
    gap: 4px;
}

.page-link {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 8px 14px;
    margin: 0 2px;
}

.page-item.active .page-link {
    background-color: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.page-link:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

/* Toggle Button Styles */
.toggle-btn {
    width: 60px;
    height: 30px;
    background-color: #22c55e;
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
}

.toggle-btn.inactive {
    background-color: #e2e8f0;
}

.toggle-btn .circle {
    width: 22px;
    height: 22px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    left: 4px;
    transition: all 0.3s;
}

.toggle-btn.active .circle {
    left: 34px;
}

.toggle-btn .inner-text {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    position: absolute;
}

.toggle-btn.active .inner-text {
    left: 10px;
}

.toggle-btn.inactive .inner-text {
    right: 8px;
    color: #94a3b8;
}

.username-cell {
    font-weight: 600;
    color: #1e293b;
}

.email-cell {
    color: #64748b;
}

/* Error state */
.toggle-btn.error {
    animation: errorShake 0.5s ease;
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}




/* accdemic */

.required:after {
    content: " *";
    color: #dc3545;
}


.required:after {
    content: " *";
    color: #dc3545;
}

#filePreview img,
#filePreview video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
}

.preview-container {
    text-align: center;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
}
