/* Custom styles for Pramanifest application - Professional & Hi-Tech Theme */

:root {
    --primary-color: #0f766e;
    --secondary-color: #0d9488;
    --accent-color: #14b8a6;
    --light-color: #f0fdfa;
    --dark-color: #134e4a;
    --grey-color: #e5e7eb;
    --success-color: #059669;
    --error-color: #dc2626;
    --warning-color: #eab308;
    --info-color: #0369a1;
}

/* Modern background pattern */
body {
    background-color: #f9fafb;
    background-image: 
        radial-gradient(#0f766e15 1px, transparent 1px),
        radial-gradient(#0f766e15 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Glass morphism for cards */
.shadow-lg {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
}

.shadow-lg:hover {
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
    transform: translateY(-3px);
}

/* Custom header style with modern underline */
header h1 {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

header h1:after {
    content: '';
    position: absolute;
    width: 40%;
    height: 4px;
    bottom: 0;
    left: 30%;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 4px;
}

/* Modern buttons with subtle hover effect */
button, .btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:active, .btn:active {
    transform: translateY(0);
}

/* Custom styling for the signature pad with grid background */
#signatureCanvas {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19l7-7 3 3-7 7-3-3z'%3E%3C/path%3E%3Cpath d='M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z'%3E%3C/path%3E%3Cpath d='M2 2l7.586 7.586'%3E%3C/path%3E%3Ccircle cx='11' cy='11' r='2'%3E%3C/circle%3E%3C/svg%3E"), auto;
    border: 1px solid var(--grey-color);
    border-radius: 8px;
    background-image: 
        linear-gradient(rgba(15, 118, 110, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 118, 110, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: white;
}

/* Table styling with hover and alternate row colors */
#dataTable {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

#dataTable th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 12px 16px;
}

#dataTable td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

#dataTable tbody tr {
    transition: background-color 0.2s ease;
}

#dataTable tbody tr:hover {
    background-color: rgba(15, 118, 110, 0.04);
}

#dataTable tbody tr:nth-child(even) {
    background-color: rgba(249, 250, 251, 0.7);
}

/* Compact form inputs with floating labels */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--grey-color);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
    outline: none;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    opacity: 0.8;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* Form field focus effects */
input:focus {
    animation: pulse 1s;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(20, 184, 166, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
    }
}

/* Notifications */
.notification {
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.notification.success {
    background-color: #ecfdf5;
    border-left-color: var(--success-color);
}

.notification.error {
    background-color: #fef2f2;
    border-left-color: var(--error-color);
}

.notification.warning {
    background-color: #fffbeb;
    border-left-color: var(--warning-color);
}

.notification.info {
    background-color: #f0f9ff;
    border-left-color: var(--info-color);
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25em 0.75em;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 999px;
}

.badge-primary {
    background-color: var(--primary-color);
    color: white;
}

.badge-secondary {
    background-color: var(--accent-color);
    color: white;
}

/* HiTech elements */
.hitech-border {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.hitech-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 1;
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.shake {
    animation: shake 0.6s ease-in-out;
}

/* PDF Export styling */
.pdf-export {
    font-family: Arial, sans-serif;
}

/* Compact sidebar/navigation */
.sidebar {
    background: var(--primary-color);
    color: white;
    height: 100%;
    width: 240px;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar-collapsed {
    transform: translateX(-200px);
}

.sidebar-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
}

/* Custom media queries for responsiveness */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .flex-col-mobile {
        flex-direction: column;
    }
    
    .w-full-mobile {
        width: 100%;
    }
} 