html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Signature Drawer Styles */
.signature-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.signature-container h1 {
    color: #333;
    font-weight: 600;
    margin-bottom: 30px;
}

.controls-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.size-selection,
.format-selection {
    flex: 1;
    min-width: 200px;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
}

.form-select {
    cursor: pointer;
}

.canvas-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#signatureCanvas {
    border: 2px solid #dee2e6;
    border-radius: 4px;
    background: white;
    cursor: crosshair;
    touch-action: none;
    display: block;
    max-width: 100%;
    height: auto;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.button-group .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.button-group .btn svg {
    flex-shrink: 0;
}

.button-group .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.button-group .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.button-group .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.button-group .btn-secondary:hover {
    background-color: #5c636a;
    border-color: #565e64;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .signature-container {
        padding: 15px;
    }

    .controls-section {
        flex-direction: column;
        gap: 15px;
    }

    .canvas-wrapper {
        padding: 15px;
        overflow-x: auto;
    }

    .button-group .btn {
        flex: 1;
        justify-content: center;
    }
}