@import url('./sizing.css');
@import url('./theme/icons.css');

:root {
    --webservise-bg-site-primary: #0B1727;
    --webservise-bg-site-secondary: #121E2E;
    --webservise-bg-site-terciary: #162231;
    --webservise-bg-site-menu: #1a2533;

    --webservise-bg-active: #34435d;

    --webservise-red: #dc3545;
    --webservise-purple: #6b5eae;
    --webservise-pink: #ff679b;
    --webservise-orange: #fd7e14;
    --webservise-yellow: #ffc107;
    --webservise-green: #198754;
    --webservise-blue: #0d6efd;

    --webservise-black: #000;
    --webservise-white: #fff;
    --webservise-gray: #748194;
    --webservise-gray-dark: #4d5969;
    --webservise-gray-100: #f9fafd;
    --webservise-gray-200: #edf2f9;
    --webservise-gray-300: #d8e2ef;
    --webservise-gray-400: #b6c1d2;
    --webservise-gray-500: #9da9bb;
    --webservise-gray-600: #748194;
    --webservise-gray-700: #5e6e82;
    --webservise-gray-800: #4d5969;
    --webservise-gray-900: #344050;
    --webservise-gray-1000: #232e3c;
    --webservise-gray-1100: #0b1727;

    --webservise-primary: #2c7be5;
    --webservise-primary-hover: #2b6cb0;
    --webservise-secondary: #748194;
    --webservise-secondary-hover: #5e6e82;
    --webservise-success: #00d27a;
    --webservise-success-hover: #0da766;
    --webservise-info: #27bcfd;
    --webservise-warning: #f5803e;
    --webservise-danger: #e63757;
    --webservise-danger-hover: #bd2f49;
    --webservise-light: #f9fafd;
    --webservise-dark: #0B1727;
    --webservise-dark-hover: #06101d;

    --webservise-primary-subtle: #0F2B50;
    --webservise-secondary-subtle: #292D34;
    --webservise-success-subtle: #003F25;
    --webservise-info-subtle: #0C384C;
    --webservise-warning-subtle: #562D16;
    --webservise-danger-subtle: #5C1623;

    --websirvise-text-primary: #acadb9;
    --websirvise-text-secondary: #ccccd3;

    --webservise-border-color: #4d5969;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html,
body {
    margin: 0;
    height: 100%;
    background: var(--webservise-bg-site-secondary);
    color: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 14px;
}

.content-webservise {
    padding: 0 28px;
}

input[attribute^="::webkit"] {
    color: white;
}

.bg-shape-left {
    position: absolute;
    left: 80px;
    bottom: 30px;
    z-index: 0;
}
.bg-shape-right {
    position: absolute;
    top: -40px;
    right: 80px;
    z-index: 0;
}

.contenedor-main {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100dvh;
    overflow: hidden;
}

main {
    flex: 1;
    overflow: hidden;
    overflow-y: auto;
}
  
::-webkit-scrollbar {
    width: 10px;
    background-color: #2f3f53;
    border-radius: 15px;
}

::-webkit-scrollbar-thumb {
    background-color: #61758f;
    border-radius: 15px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #1e2733;
}

li {
    list-style: none;
}

a {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    text-decoration: none;
}

a:hover {
    --bs-link-color-rgb: var(--bs-link-hover-color-rgb);
}

a:not([href]):not([class]),
a:not([href]):not([class]):hover {
    color: inherit;
    text-decoration: none;
}

input,
button,
select,
optgroup,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button,
select {
    text-transform: none;
}

select {
    word-wrap: normal;
}

select:disabled {
    opacity: 1;
}

.label-default {
    font-size: 14px;
    color: var(--websirvise-text-secondary);
    margin-left: 8px;
}

.input-default,
.select-default {
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    background: var(--webservise-bg-site-secondary);
    color: var(--websirvise-text-secondary);
    transition: all 0.2s ease;
    resize: vertical;
}

.select-default {
    padding: 5px 10px;
}

.input-default:hover,
.select-default:hover {
    border-color: var(--webservise-gray-900);
    background-color: rgba(0, 123, 255, 0.05);
}

.input-default:focus,
.select-default:focus {
    outline: none;
    border-color: var(--webservise-primary);
    background-color: var(--webservise-bg-site-secondary);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.panel-overlay-default {
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(1px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.panel-overlay-default.active {
    opacity: 1;
    visibility: visible;
}

h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* ////////////////
//  POSITION //////////////// */
.fixed {
    position: fixed;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.sticky {
    position: sticky;
}

/* ////////////////
//  DISPLAY //////////////// */
.flex {
    display: flex;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.grid {
    display: grid;
}

/* ////////////////
//  FLEXBOX //////////////// */

.flex-column {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.flex-1 {
    flex: 1;
}

.flex-2 {
    flex: 2;
}

.align-items-start {
    align-items: start;
}

.align-items-center {
    align-items: center;
}

.align-items-end {
    align-items: end;
}

.align-items-baseline {
    align-items: baseline;
}

.justify-content-start {
    justify-content: start;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-end {
    justify-content: end;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-around {
    justify-content: space-around;
}

.justify-content-every {
    justify-content: space-around;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.flex-auto {
    flex: auto;
}

/* ////////////////
// GAP //////////////// */
.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.gap-5 {
    gap: 20px;
}

.mb-1 {
    margin-bottom: 4px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 12px;
}

.pb-1 {
    padding-bottom: 4px;
}

.pb-2 {
    padding-bottom: 8px;
}

.pb-3 {
    padding-bottom: 12px;
}

/* ////////////////
// WIDTH Y HEIGHT //////////////// */

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

/* ////////////////
// BUTTONS //////////////// */

.btn {
    font-size: 14px;
    border-radius: 4px;
    border: none;
    padding: 4px 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-webservise {
    background-color: var(--webservise-dark);
    color: var(--webservise-gray-400);
}

.btn-webservise:hover {
    background-color: var(--webservise-dark-hover);
    color: var(--webservise-gray-400);
}


.btn-danger {
    background-color: var(--webservise-danger);
    color: var(--webservise-white);
}

.btn-danger:hover {
    background-color: var(--webservise-danger-hover);
    color: var(--webservise-white);
}

.btn-primary {
    background-color: var(--webservise-primary);
    color: var(--webservise-white);
}

.btn-primary:hover {
    background-color: var(--webservise-primary-hover);
    color: var(--webservise-white);
}

.btn-secondary {
    background-color: var(--webservise-secondary);
    color: var(--webservise-white);
}

.btn-secondary:hover {
    background-color: var(--webservise-secondary-hover);
    color: var(--webservise-white);
}

.btn-success {
    background-color: var(--webservise-success);
    color: var(--webservise-white);
}

.btn-success:hover {
    background-color: var(--webservise-success-hover);
    color: var(--webservise-white);
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--webservise-text-primary, white);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    color: var(--webservise-danger);
}

.border-button {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.title-panel-default {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--webservise-border-color, #34495e);
    margin-bottom: 15px;
    padding-bottom: 10px;
}

/* ////////////
// FORMS //////////// */

.form-panel-overlay {
    opacity: 0;
    visibility: hidden;
}

.form-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.form-panel,
.form-panel-xl {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    padding: 10px 15px;
    background-color: var(--webservise-bg-site-menu, #2c3e50);
    color: var(--webservise-text-primary, white);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
}

.form-panel-xl {
    width: 800px;
}

.form-panel.active,
.form-panel-xl.active {
    right: 0;
}


.form-panel-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Sistema de navegación por pestañas */
.pageContainer {
    display: none;
    width: 100%;
    height: 100%;
    background: var(--webservise-bg-site);
}

.pageContainer.activePage {
    display: block !important;
}

.content-webservise {
    position: relative;
    width: 100%;
    height: calc(97vh - 60px);
    overflow: hidden;
}

.siniestros-placeholder {
    padding: 40px;
    text-align: center;
    color: var(--webservise-text-primary);
    background: var(--webservise-bg-site);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.siniestros-placeholder h2 {
    color: var(--webservise-primary);
    margin-bottom: 20px;
    font-size: 28px;
}

.siniestros-placeholder p {
    color: var(--webservise-gray-300);
    font-size: 16px;
}

/* Contenido de plantillas */
.template-content {
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    background: var(--webservise-bg-site);
}

