/* DokuSign - Custom Styles */

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(99,102,241,0.3); }
    50% { box-shadow: 0 0 20px rgba(99,102,241,0.6); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }
.animate-slide-in { animation: slideIn 0.4s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Card hover */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.12);
}

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

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sidebar */
.sidebar-link {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(99,102,241,0.1);
    border-left-color: #6366f1;
    color: #6366f1;
}
.sidebar-link.active {
    background: rgba(99,102,241,0.15);
    font-weight: 600;
}

/* Signature canvas */
.signature-canvas {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    cursor: crosshair;
    transition: border-color 0.3s;
    touch-action: none;
}
.signature-canvas:hover, .signature-canvas.active {
    border-color: #6366f1;
}

/* Table */
.data-table th {
    background: #f8fafc;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 12px 16px;
}
.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.data-table tr:hover td {
    background: #fafbfd;
}

/* Input focus */
.input-field {
    transition: all 0.2s ease;
    border: 1.5px solid #e2e8f0;
}
.input-field:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
    outline: none;
}

/* Button shine */
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -4px rgba(99,102,241,0.5);
}
.btn-primary:active { transform: translateY(0); }

/* Stat card gradient borders */
.stat-card {
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    border-radius: 4px 0 0 4px;
}
.stat-card.indigo::before { background: linear-gradient(to bottom, #6366f1, #818cf8); }
.stat-card.emerald::before { background: linear-gradient(to bottom, #10b981, #34d399); }
.stat-card.amber::before { background: linear-gradient(to bottom, #f59e0b, #fbbf24); }
.stat-card.rose::before { background: linear-gradient(to bottom, #f43f5e, #fb7185); }
.stat-card.violet::before { background: linear-gradient(to bottom, #8b5cf6, #a78bfa); }
.stat-card.cyan::before { background: linear-gradient(to bottom, #06b6d4, #22d3ee); }

/* Document preview */
.doc-preview {
    background: white;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    font-family: 'Times New Roman', serif;
}

/* Notification dot */
.notif-dot {
    width: 8px; height: 8px;
    background: #f43f5e;
    border-radius: 50%;
    position: absolute;
    top: -2px; right: -2px;
    animation: pulse-glow 2s infinite;
}

/* Print styles */
@media print {
    .no-print { display: none !important; }
    .doc-preview { box-shadow: none; }
    body { background: white !important; }
}

/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }

/* Toast notification */
.toast {
    animation: slideInRight 0.4s ease-out forwards;
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* Modal backdrop */
.modal-backdrop {
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
}
