/* Custom styles for PDF signature system */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    border: none;
}

.signature-pad-container {
    position: relative;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    margin: 10px 0;
}

.signature-pad {
    width: 100%;
    height: 200px;
    border-radius: 6px;
    cursor: crosshair;
    touch-action: none;
}

.signature-controls {
    text-align: center;
}

.pdf-preview {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Admin styles */
.navbar-brand {
    font-weight: bold;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .signature-pad {
        height: 150px;
    }
    
    .pdf-preview embed {
        height: 250px !important;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Loading states */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom badges */
.badge {
    font-size: 0.75em;
}

/* Form enhancements */
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    border-color: #80bdff;
}

.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* Stats cards */
.card.bg-primary,
.card.bg-warning,
.card.bg-success {
    color: white !important;
}

.card.bg-warning {
    color: #212529 !important;
}

/* Table hover effects */
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Alert enhancements */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

/* Signature pad enhancements */
.signature-pad-container::before {
    content: 'Assine aqui';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #adb5bd;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 1;
}

.signature-pad-container.has-signature::before {
    display: none;
}

/* File upload styling */
.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
}

/* Navigation enhancements */
.nav-link {
    border-radius: 6px;
    margin: 0 2px;
    transition: background-color 0.15s ease-in-out;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Utility classes */
.text-muted {
    color: #6c757d !important;
}

.border-dashed {
    border-style: dashed !important;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .signature-controls {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
}
