@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

*,
*::before,
*::after {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

h1 {
    font-size: 30px;
    font-weight: 600;
}

h2 {
    font-size: 20px;
    font-weight: 600;
}

h3 {
    font-size: 18px;
    font-weight: 600;
}

small,
.td-info small,
.nav-header {
    font-size: 11px;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-size: cover;
}

.login-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 60px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    color: #000;
}

.input-group label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    padding: 14px;
}

.app-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.app-top-bar {
    height: 60px;
    background: #34495e;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-shrink: 0;
}

.user-welcome {
    font-size: 16px;
    font-weight: bold;
}

.app-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.app-sidebar {
    width: 260px;
    background: #34495e;
    color: #fff;
    padding: 20px 0;
    flex-shrink: 0;
    z-index: 100;
}

.app-workspace {
    flex: 1;
    background: #f0f2f5;
    padding: 15px;
    overflow-y: auto;
    display: block;
}

.content-bubble {
    background: #fff;
    width: 100%;
    max-width: 98% !important;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e4e8;
    margin: 0 auto 40px auto;

    height: auto;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
}
.table-responsive-container {
    position: relative;
    max-height: 600px;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
    background: #fff;
    margin-top: 15px;
}

.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-custom thead th {
    position: sticky !important;
    background-color: #2c3e50 !important;
    color: #ffffff !important;
    z-index: 30;
    padding: 12px;
    text-align: center;
    border: none;
    box-shadow: inset 0 -1px 0 #455a64;
}

.table-custom thead tr:nth-child(1) th {
    top: 0 !important;
    z-index: 32;
    height: 45px;
}

.table-custom thead tr:nth-child(2) th {
    top: 45px !important;
    z-index: 31;
    height: 40px;
}

.table-custom tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f1f1;
    background: #fff;
}

.table-custom tbody tr:nth-child(even) td {
    background-color: #fafafa;
}

.table-custom tbody tr:hover td {
    background-color: #f0f7ff;
}

.sidebar-title {
    padding: 0 20px 20px;
    color: #f39c12;
    border-bottom: 1px solid #455a64;
}

.nav-item {
    display: block;
    padding: 15px 20px;
    color: #bdc3c7;
    text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
    background: #2c3e50;
    color: #fff;
    border-left: 4px solid #f39c12;
    font-weight: bold;
}

.nav-header {
    display: block;
    padding: 10px 20px 5px;
    color: #f39c12;
    opacity: 0.7;
}

@media (max-width: 992px) {
    .app-body {
        flex-direction: column !important;
        overflow: visible;
    }

    .app-sidebar {
        position: absolute;
        width: 260px !important;
        height: auto;
        min-height: 100vh;
        z-index: 9999 !important;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .app-workspace {
        padding: 10px !important;
    }

    .content-bubble {
        max-width: 100% !important;
        padding: 15px;
        min-height: 90vh;
    }

    .table-custom {
        min-width: 900px;
    }

    .table-custom thead th {
        white-space: nowrap;
    }
}

.btn-success-small {
    background: #27ae60;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-secondary-small {
    background: #6c757d;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(40, 50, 78, 0.3);
}

.btn-primary-small {
    background: #2381d3;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(49, 133, 198, 0.3);
}

/* loader */

.mt-20 {
    margin-top: 20px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader {
    position: relative;
    width: 2.5em;
    height: 2.5em;
    transform: rotate(165deg);
    position: absolute;
    top: calc(50% - 1.25em);
    left: calc(50% - 1.25em);
}

.loader:before,
.loader:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 0.5em;
    height: 0.5em;
    border-radius: 0.25em;
    transform: translate(-50%, -50%);
}

.loader:before {
    animation: before8 2s infinite;
}

.loader:after {
    animation: after6 2s infinite;
}

@keyframes before8 {
    0% {
        width: 0.5em;
        box-shadow: 1em -0.5em rgba(225, 20, 98, 0.75), -1em 0.5em rgba(111, 202, 220, 0.75);
    }

    35% {
        width: 2.5em;
        box-shadow: 0 -0.5em rgba(225, 20, 98, 0.75), 0 0.5em rgba(111, 202, 220, 0.75);
    }

    70% {
        width: 0.5em;
        box-shadow: -1em -0.5em rgba(225, 20, 98, 0.75), 1em 0.5em rgba(111, 202, 220, 0.75);
    }

    100% {
        box-shadow: 1em -0.5em rgba(225, 20, 98, 0.75), -1em 0.5em rgba(111, 202, 220, 0.75);
    }
}

@keyframes after6 {
    0% {
        height: 0.5em;
        box-shadow: 0.5em 1em rgba(61, 184, 143, 0.75), -0.5em -1em rgba(233, 169, 32, 0.75);
    }

    35% {
        height: 2.5em;
        box-shadow: 0.5em 0 rgba(61, 184, 143, 0.75), -0.5em 0 rgba(233, 169, 32, 0.75);
    }

    70% {
        height: 0.5em;
        box-shadow: 0.5em -1em rgba(61, 184, 143, 0.75), -0.5em 1em rgba(233, 169, 32, 0.75);
    }

    100% {
        box-shadow: 0.5em 1em rgba(61, 184, 143, 0.75), -0.5em -1em rgba(233, 169, 32, 0.75);
    }
}

.text-justify {
    text-align: justify !important;
    text-justify: inter-word;
    padding: 10px !important;
    min-width: 200px;
    vertical-align: top;
}

input[name="ref_sku[]"] {
    transition: all 0.3s ease;
    min-width: 140px;
}

input[name="ref_sku[]"]:focus {
    min-width: 1000px;
    background-color: #fffbf5 !important;
    border: 1px solid #f39c12 !important;
    z-index: 100;
    position: relative;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

input[readonly] {
    background-color: transparent !important;
    cursor: default;
}

.welcome-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 70vh;
    text-align: center;
    
    background-image: url('../img/dinamo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 480px;
}

.welcome-container h1 {
    margin-top: 180px;
    font-weight: 800;
    color: #2c3e50;
}