/* Pro UI styles for DEVFORFUTURE eLearning LMS */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Global Font Override */
body, html, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, 
input, button, select, textarea, .form-control, .btn, .table, .sidebar-menu, .o_form_view {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

body {
    background-color: #f8fafc !important; /* Soft slate-50 background */
    color: #334155 !important; /* Slate-700 */
}

/* Header Redesign */
.header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important; /* Slate-200 */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
    height: 64px !important;
    z-index: 1030 !important;
}

.header-left {
    background: #09090b !important; /* Match sidebar background */
    height: 64px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px !important;
    border-bottom: 1px solid #18181b !important;
    transition: all 0.2s ease;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none !important;
}

.logo span {
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    font-size: 15px !important;
    color: #ffffff !important;
    text-transform: uppercase;
}

.logo i {
    font-size: 22px !important;
    color: #ffffff !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

#toggle_btn, #mobile_btn {
    color: #64748b !important; /* Slate-500 */
    font-size: 18px !important;
    padding: 0 20px !important;
    line-height: 64px !important;
    height: 64px !important;
    transition: color 0.2s;
}

#toggle_btn:hover, #mobile_btn:hover {
    color: #0f172a !important; /* Slate-900 */
}

.user-menu.nav > li > a {
    color: #475569 !important; /* Slate-600 */
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 64px !important;
    height: 64px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-menu.nav > li > a:hover {
    color: #0f172a !important;
}

.user-img img {
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s;
}

.user-menu.nav > li > a:hover .user-img img {
    border-color: #3b82f6;
}

/* Sidebar Redesign */
.sidebar {
    width: 240px !important;
    background: #09090b !important; /* Deep dark slate/zinc */
    border-right: 1px solid #18181b !important;
    top: 64px !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 1029 !important;
}

.sidebar-inner {
    background: #09090b !important;
}

.sidebar-menu {
    padding: 20px 14px !important;
}

.sidebar-menu li {
    margin-bottom: 6px;
}

.sidebar-menu li.menu-title {
    color: #52525b !important; /* Zinc-600 */
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 16px 16px 8px 16px !important;
}

.sidebar-menu li a {
    color: #a1a1aa !important; /* Zinc-400 */
    padding: 11px 16px !important;
    border-radius: 10px !important;
    display: flex;
    align-items: center;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
}

.sidebar-menu li a i {
    font-size: 16px !important;
    margin-right: 12px !important;
    width: 20px;
    text-align: center;
    color: #71717a !important; /* Zinc-500 */
    transition: all 0.25s ease;
}

.sidebar-menu li a:hover {
    color: #ffffff !important;
    background: #18181b !important; /* Zinc-800 */
    padding-left: 20px !important; /* Subtle slide-right effect */
}

.sidebar-menu li a:hover i {
    color: #ffffff !important;
}

.sidebar-menu li.active a {
    background: var(--primary-color) !important; /* Clean flat active background */
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.sidebar-menu li.active a i {
    color: #ffffff !important;
}

/* Page and Content Layout */
.page-wrapper {
    margin-left: 240px !important;
    padding-top: 64px !important;
    background-color: #f8fafc !important;
    min-height: 100vh;
    transition: all 0.2s ease;
}

.content {
    padding: 32px !important;
}

.page-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.75px;
    margin-bottom: 8px;
}

.text-muted {
    color: #64748b !important; /* Slate-500 */
}

/* Custom Cards */
.card {
    border: 1px solid #e2e8f0 !important; /* Slate-200 */
    border-radius: 18px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden;
    background: #ffffff !important;
    margin-bottom: 32px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05) !important;
    border-color: #cbd5e1 !important;
}

.card-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 22px 28px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    letter-spacing: -0.25px;
}

.card-body {
    padding: 28px !important;
}

/* Modernized Dashboard widgets */
.dash-widget {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin-bottom: 30px;
    padding: 24px 28px !important;
    position: relative;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    height: 110px;
}

.dash-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
    border-color: #cbd5e1 !important;
}

.dash-widget-bg1, .dash-widget-bg2, .dash-widget-bg3, .dash-widget-bg4 {
    width: 58px !important;
    height: 58px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 22px !important;
    position: static !important;
    float: none !important;
    line-height: 58px !important;
    margin: 0 !important;
}

.dash-widget-bg1 {
    background: rgba(14, 165, 233, 0.1) !important; /* Soft blue */
    color: #0284c7 !important;
    box-shadow: none !important;
}

.dash-widget-bg2 {
    background: rgba(16, 185, 129, 0.1) !important; /* Soft green */
    color: #059669 !important;
    box-shadow: none !important;
}

.dash-widget-bg3 {
    background: rgba(245, 158, 11, 0.1) !important; /* Soft orange */
    color: #d97706 !important;
    box-shadow: none !important;
}

.dash-widget-bg4 {
    background: rgba(168, 85, 247, 0.1) !important; /* Soft purple */
    color: #7c3aed !important;
    box-shadow: none !important;
}

.dash-widget-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dash-widget-info h3 {
    font-size: 30px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -1px;
}

.dash-widget-info span {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #64748b !important; /* Slate-500 */
    text-transform: uppercase;
    letter-spacing: 0.75px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.dash-widget-info span i {
    font-size: 11px;
}

/* Modernized Tables */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

.table {
    margin-bottom: 0 !important;
    border-collapse: separate !important;
}

.table th {
    background-color: #f8fafc !important; /* Slate-50 */
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    color: #475569 !important; /* Slate-600 */
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    padding: 16px 24px !important;
}

.table td {
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    color: #334155 !important; /* Slate-700 */
    padding: 18px 24px !important;
    vertical-align: middle !important;
    font-size: 14px !important;
    transition: background-color 0.2s;
}

.table tr:hover td {
    background-color: #f1f5f9 !important; /* Slate-100 on hover */
}

.table td h2 {
    margin: 0 !important;
    line-height: 1.4 !important;
}

.table td h2 a {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.table td h2 a:hover {
    color: #2563eb !important;
}

/* Buttons redesign */
.btn {
    border-radius: 10px !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: none !important;
}

.btn-rounded {
    border-radius: 9999px !important;
}

.btn-sm {
    padding: 6px 14px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.btn-primary:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    transform: translateY(-1px) !important;
}

.btn-info {
    background-color: #0ea5e9 !important;
    border: 1px solid #0ea5e9 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.btn-info:hover {
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
    transform: translateY(-1px) !important;
}

.btn-danger {
    background-color: #ef4444 !important;
    border: 1px solid #ef4444 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.btn-danger:hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    transform: translateY(-1px) !important;
}

.btn-white {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

.btn-white:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

/* Custom Badges (Status Pills) */
.custom-badge {
    padding: 5px 12px !important;
    border-radius: 9999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.status-green {
    background-color: #d1fae5 !important; /* Emerald-100 */
    color: #065f46 !important; /* Emerald-800 */
    border: 1px solid #a7f3d0 !important;
}

.status-red {
    background-color: #fee2e2 !important; /* Red-100 */
    color: #991b1b !important; /* Red-800 */
    border: 1px solid #fecaca !important;
}

.status-purple {
    background-color: #f3e8ff !important; /* Purple-100 */
    color: #6b21a8 !important; /* Purple-800 */
    border: 1px solid #e9d5ff !important;
}

.status-blue {
    background-color: #dbeafe !important; /* Blue-100 */
    color: #1e40af !important; /* Blue-800 */
    border: 1px solid #bfdbfe !important;
}

/* Modals Redesign */
.modal-content {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden;
}

.modal-body {
    padding: 36px 30px !important;
}

.modal-body h3 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-top: 16px !important;
}

.modal-body .btn {
    min-width: 110px;
    margin: 0 6px;
}

/* Corner student dashboard */
.card-box {
    border-radius: 18px !important;
    padding: 28px !important;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.card-box:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04) !important;
}

/* Odoo Forms View Overrides */
.o_form_view {
    background-color: #f8fafc !important;
    padding: 24px !important;
}

.o_form_statusbar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 12px 24px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    margin-bottom: 24px !important;
}

.o_form_sheet {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04) !important;
    padding: 36px !important;
    margin-bottom: 40px !important;
}

.o_input {
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    transition: all 0.2s ease !important;
    background-color: #ffffff !important;
}

.o_input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
}

.o_input[readonly] {
    background-color: #f1f5f9 !important;
    border-color: transparent !important;
}

.o_form_group_label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #475569 !important;
}

.btn-odoo-primary {
    background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15) !important;
}

.btn-odoo-primary:hover {
    background: linear-gradient(135deg, #0284c7, #1d4ed8) !important;
    transform: translateY(-1px) !important;
}

.btn-odoo-secondary {
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 700 !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
}

.btn-odoo-secondary:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
}

/* Login/Register Page Styling Override */
.account-wrapper {
    background: #f8fafc !important; /* Soft slate-50 background */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-page {
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.account-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
    padding: 40px !important;
    width: 100%;
    max-width: 440px !important;
}

.account-logo h3 {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--primary-color) !important;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.account-logo h5 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

.form-group label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    height: auto !important;
    font-size: 14px !important;
    color: #1e293b !important;
    transition: all 0.2s ease !important;
}

.form-control:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
}

.account-btn {
    width: 100% !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
    color: #ffffff !important;
    margin-top: 10px;
}

.account-btn:hover {
    background: linear-gradient(135deg, #0284c7, #1d4ed8) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
}

.register-link {
    font-size: 13px !important;
    color: #64748b !important;
    font-weight: 500;
}

.register-link a {
    color: #2563eb !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.register-link a:hover {
    text-decoration: underline !important;
}

/* Extra overrides for spacing and transitions */
.m-r-25 {
    margin-right: 25px !important;
}

.lms-item {
    transition: background-color 0.2s ease;
}

.lms-item:hover {
    transform: none !important;
}

/* iOS switch toggle switch styling */
.ios-switch-container {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    margin: 0;
    vertical-align: middle;
}
.ios-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.ios-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: all .25s ease;
    border-radius: 24px;
}
.ios-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.ios-switch-input:checked + .ios-switch-slider {
    background-color: #22c55e;
}
.ios-switch-input:checked + .ios-switch-slider:before {
    transform: translateX(22px);
}
.ios-switch-input:focus + .ios-switch-slider {
    box-shadow: 0 0 1px #22c55e;
}

