﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #21387e;
  border-color: #21387e;
}

.btn-primary:hover {
  background-color: #2a4bb0;
  border-color: #2a4bb0;
}

.btn-primary:active {
  background-color: #14224d !important;
  border-color: #14224d !important;
  box-shadow: 0 0 0 .2rem rgba(33, 56, 126, .5) !important;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}

.navbar-user-icon {
    margin-right: 0.4rem;
}

/* Color personalizado para el título */
.custom-title-color {
    color: #21387e;
}

.bg-custom {
    color: #ffffff !important;
    background-color: #21387e !important;
    border-color: #21387e !important;
}

.custom-button-color {
    background-color: #21387e !important;
    border-color: #21387e !important;
}

/* Colores para el navbar y footer
----------------------------------------------- */
.navbar {
    background: #ffffff;
    color: #21387e;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.navbar a {
    color: #21387e !important;
}
.navbar a:hover {
    color: #1a2b65;
}
.footer {
    background: #1d2249;
    color: #ffffff;
}
.footer a {
    color: #ffffff;
}
.footer a:hover {
    color: #cccccc;
}


        #firmaArea {
            border: 2px dashed #198754;
            background: rgba(25, 135, 84, 0.1);
            transition: all 0.3s ease;
            min-width: 150px;
            min-height: 60px;
        }

        #firmaArea:hover {
            background: rgba(25, 135, 84, 0.2);
            border: 2px solid #198754;
        }

        #firmaArea.resizing {
            border: 2px solid #0d6efd;
            background: rgba(13, 110, 253, 0.2);
        }

        .pulse-animation {
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(25, 135, 84, 0); }
            100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
        }

        .firma-seleccionada {
            border: 2px solid #198754 !important;
            background: rgba(25, 135, 84, 0.15) !important;
        }


        #firmaArea {
        border: 2px dashed #198754;
        background: rgba(25, 135, 84, 0.1);
        transition: all 0.3s ease;
        min-width: 150px;
        min-height: 60px;
        box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
    }

    #firmaArea:hover {
        background: rgba(25, 135, 84, 0.2);
        border: 2px solid #198754;
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
    }

    #firmaArea.resizing {
        border: 2px solid #0d6efd;
        background: rgba(13, 110, 253, 0.2);
    }

    /* Animación de pulso para la firma */
    .pulse-animation {
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% { 
            box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7); 
            transform: scale(1);
        }
        50% { 
            box-shadow: 0 0 0 15px rgba(25, 135, 84, 0.3);
            transform: scale(1.05);
        }
        100% { 
            box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); 
            transform: scale(1);
        }
    }

    /* Efecto de cursor especial para el área de firma */
    .firma-cursor {
        cursor: crosshair !important;
    }

    .firma-cursor-grab {
        cursor: grab !important;
    }

    .firma-cursor-grabbing {
        cursor: grabbing !important;
    }

    /* Overlay con efecto de grid para mejor orientación */
    #firmaOverlay {
        background-image: 
            linear-gradient(rgba(25, 135, 84, 0.1) 1px, transparent 1px),
            linear-gradient(90deg, rgba(25, 135, 84, 0.1) 1px, transparent 1px);
        background-size: 20px 20px;
    }

    /* Efecto de ripple al hacer click */
    .ripple-effect {
        position: absolute;
        border-radius: 50%;
        background: rgba(25, 135, 84, 0.6);
        transform: scale(0);
        animation: ripple 0.6s linear;
        pointer-events: none;
    }

    @keyframes ripple {
        to {
            transform: scale(4);
            opacity: 0;
        }
    }

    /* Indicador de posición */
    .position-indicator {
        position: absolute;
        background: #198754;
        color: white;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 12px;
        pointer-events: none;
        z-index: 20;
        transform: translateY(-100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .position-indicator.show {
        opacity: 1;
    }

    /* Efecto de resaltado para el documento */
    .document-highlight {
        box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.5);
        transition: box-shadow 0.3s ease;
    }

    /* Guías de alineación */
    .guide-line {
        position: absolute;
        background: rgba(255, 0, 0, 0.3);
        pointer-events: none;
        z-index: 5;
    }

    .guide-line.horizontal {
        width: 100%;
        height: 1px;
    }

    .guide-line.vertical {
        width: 1px;
        height: 100%;
    }