/* Custom styles for SkyBridge Settlement Pro Engine */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glass morphism effects */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Animation keyframes */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out forwards;
}

/* Input focus styles */
input:focus, select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1), 0 2px 4px -1px rgba(99, 102, 241, 0.06);
}

/* Table row hover effect */
tr.hover-row:hover {
    background-color: #f8fafc;
    transition: background-color 0.2s ease;
}

/* Settlements input table - clean compact layout */
.settlements-container {
    overflow: visible;
}
.settlements-table {
    font-size: 0.875rem;
    width: 100%;
    border-collapse: collapse;
}
.settlements-table thead th {
    padding: 8px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.settlements-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}
.settlements-table tbody tr:last-child {
    border-bottom: none;
}
.settlements-table tbody td {
    padding: 6px 4px;
    vertical-align: middle;
}
.settlements-table tbody tr:hover {
    background-color: #f8fafc;
}
.settlements-table input[type="number"],
.settlements-table input[type="date"] {
    font-size: 0.8rem;
    padding: 6px 8px;
    width: 100%;
    box-sizing: border-box;
}
/* Amount column gets more space */
.settlements-table td:first-child {
    width: 45%;
}
/* Date column */
.settlements-table td:nth-child(2) {
    width: 40%;
}
/* Final checkbox - compact */
.settlements-table td:nth-child(3) {
    width: 8%;
    text-align: center;
}
/* Delete button - compact */
.settlements-table td:nth-child(4) {
    width: 7%;
    text-align: center;
}

/* Number formatting monospace */
.mono-number {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
}

/* Status badge animations */
.status-pulse {
    animation: pulse-ring 2s infinite;
}

/* Dark mode adjustments */
.dark body {
    background-color: #0f172a;
    color: #e2e8f0;
}

.dark .bg-white {
    background-color: #1e293b;
}

.dark .bg-slate-50 {
    background-color: #334155;
}

.dark .text-slate-900 {
    color: #f1f5f9;
}

.dark .text-slate-700 {
    color: #cbd5e1;
}

.dark .text-slate-600 {
    color: #94a3b8;
}

.dark .text-slate-500 {
    color: #64748b;
}

.dark .border-slate-200 {
    border-color: #475569;
}

.dark .border-slate-300 {
    border-color: #475569;
}

/* Transition utilities */
.transition-all-300 {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Print styles */
@media print {
    header, footer, button {
        display: none;
    }
    
    .shadow-sm {
        box-shadow: none;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .lg\:col-span-4, .lg\:col-span-8 {
        grid-column: span 12;
    }
}

/* Custom tooltip */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
    background: #1e293b;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 0.5rem;
    z-index: 50;
}

.tooltip:hover::after {
    opacity: 1;
}