/* modern-theme.css - Desain Modern untuk KasirEvo */
:root {
    --primary: #ff4c29;
    --primary-dark: #e63e1c;
    --primary-light: #ff704f;
    --secondary: #a6a6a6;
    --secondary-dark: #8a8a8a;
    --dark: #1a1a1a;
    --darker: #0d0d0d;
    --light: #f5f5f5;
    --white: #ffffff;
    --gray: #e0e0e0;
    --text-muted: #6c757d;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-primary: 0 4px 15px rgba(255, 76, 41, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Open Sans', 'Segoe UI', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    position: relative;
}

/* BUTTON */
.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border: none;
    color: #fff;
}

.btn-success:hover {
    background: linear-gradient(135deg, #34ce57 0%, #28a745 100%);
    transform: translateY(-2px);
}

.btn-navy {
    background: var(--secondary);
    color: #ffffff;
    border-radius: 10px;
}

.btn-navy:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 76, 41, 0.4);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    border: none;
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e4606d 0%, #dc3545 100%);
    transform: translateY(-2px);
}

.btn-xs {
    font-size: 11px !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
}

.btn-dark {
    background: var(--dark);
    color: #fff;
    border: none;
}

.btn-dark:hover {
    background: var(--darker);
    transform: translateY(-2px);
}

.btn-inline {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
}

/*-- BUTTON */

.form-switch-lg .form-check-input {
    width: 56px;
    height: 28px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: .2em;
    border-radius: 5px;
    border: 1.5px solid #d0d0d0;
    transition: var(--transition);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Bootbox */
.bootbox-close-button {
    border: 0;
    background: none;
    font-size: 25px;
    color: #8c8d91;
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: .75rem 1.25rem;
    color: inherit;
}

button.close {
    border: 0;
}

.close {
    float: right;
    font-size: 1.5rem;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
}

/*-- Bootbox */

/* ALERT */
.alert {
    border-radius: 12px;
    padding: 14px 18px;
    border: none;
}

small.alert {
    padding: 8px 12px;
    border-radius: 8px;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 3px solid #dc3545;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 3px solid #28a745;
}

.alert-warning {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #9a3412;
    border-left: 3px solid #ffc107;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-left: 3px solid #0dcaf0;
}

/* END - ALERT */

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table.table-bordered td,
.table.table-bordered th {
    border: 1px solid #e8e8e8;
}

.table thead th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e9ecef;
    padding: 14px 12px;
}

.table tbody td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 76, 41, 0.04);
}

.bg-clear {
    background: var(--white);
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transition: width .6s ease;
}

.btn {
    display: inline-block;
    font-size: inherit;
    cursor: pointer;
    vertical-align: middle;
    transition: all .2s;
    outline: 0;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
}

.content-wrapper > .card {
    border: 0;
    border-radius: 20px;
    background: var(--white);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.content-wrapper > .card .card-header {
    background: var(--white);
    border-bottom: 1px solid #ececec;
    padding: 18px 28px;
}

.content-wrapper > .card > .card-body {
    padding: 24px 28px;
}

.content-wrapper > .card .card-title {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
    color: var(--dark);
}

.red-background-container {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    height: 200px;
    position: absolute;
    width: 100%;
    z-index: -1;
    top: 0;
    left: 0;
}

.breadcrumb {
    background: #ffffff;
    padding: 14px 28px;
    border-bottom: 1px solid #e9eef3;
    border-radius: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\f101";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    margin-top: 5px;
    color: #999fad;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--primary);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.col-form-label {
    font-weight: 600;
}

.btn-label-icon {
    position: relative;
    display: inline-block;
}

.form-check-input-md .form-check-input {
    height: 25px;
    width: 50px;
}

.form-check-input-sm .form-check-input {
    height: 20px;
    width: 40px;
}

.form-check-input-xs .form-check-input {
    height: 15px;
    width: 27px;
}

.input-group-text {
    border-radius: 12px 0 0 12px;
    background: #f8f8f8;
    border: 1.5px solid #e8e8e8;
    border-right: none;
}

/* Modal Modern */
.modal-content {
    border-radius: 24px;
    border: none;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 24px;
}

.modal-header .modal-title {
    font-weight: 600;
}

.modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 16px 24px;
}

/* Progress */
.progress {
    border-radius: 10px;
    height: 8px;
    background: #f0f0f0;
}

/* Badge */
.badge {
    padding: 5px 10px;
    font-weight: 500;
    border-radius: 20px;
    font-size: 11px;
}

/* Dropdown */
.dropdown-menu {
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-md);
    padding: 8px 0;
}

.dropdown-item {
    padding: 8px 20px;
    font-size: 13px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(255, 76, 41, 0.08);
    color: var(--primary);
}

/* Nav Pills */
.nav-pills .nav-link {
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 500;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Pagination */
.pagination .page-link {
    border-radius: 10px;
    margin: 0 3px;
    border: none;
    color: var(--dark);
    padding: 8px 14px;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background-color: rgba(255, 76, 41, 0.1);
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

/* Toast */
.toast {
    border-radius: 12px;
    border: none;
    box-shadow: var(--shadow-md);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Pace loading */
.pace .pace-progress {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    height: 3px;
}

/* Utility Classes */
.bg-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.text-primary-custom {
    color: var(--primary);
}

.border-primary-custom {
    border-color: var(--primary);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Focus styles for accessibility */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Button reset for all browsers */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/* Remove default search input styling */
[type="search"] {
    -webkit-appearance: textfield;
    appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* Remove default number input spinners */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/* Remove default date picker indicator */
[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
    appearance: none;
}

/* Improve consistency for input placeholder */
::-webkit-input-placeholder {
    color: inherit;
    opacity: 0.54;
}

::-moz-placeholder {
    color: inherit;
    opacity: 0.54;
}

:-ms-input-placeholder {
    color: inherit;
    opacity: 0.54;
}

::placeholder {
    color: inherit;
    opacity: 0.54;
}

/* Ensure consistent box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default padding and list styles */
ul,
ol {
    padding: 0;
    list-style: none;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}