/* CertSud CRM - Clean Tailwind CSS Styles */
/* Removed all animations, transitions, and DaisyUI dependencies */

/* Layout */
html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}

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

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

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

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

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Design System CSS Variables */
:root {
    /* Colors */
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-success: #059669;
    --color-success-hover: #047857;
    --color-warning: #d97706;
    --color-warning-hover: #b45309;
    --color-danger: #dc2626;
    --color-danger-hover: #b91c1c;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-900: #111827;

    /* Spacing */
    --spacing-xs: 0.25rem;
    /* 4px */
    --spacing-sm: 0.5rem;
    /* 8px */
    --spacing-md: 1rem;
    /* 16px */
    --spacing-lg: 1.5rem;
    /* 24px */
    --spacing-xl: 2rem;
    /* 32px */
    --spacing-2xl: 3rem;
    /* 48px */

    /* Border radius */
    --radius-sm: 0.25rem;
    /* 4px */
    --radius-md: 0.375rem;
    /* 6px */
    --radius-lg: 0.5rem;
    /* 8px */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Removed custom button classes - use Tailwind utilities directly */

/* Removed all custom classes - use Tailwind utilities directly */

/* All custom classes removed - use Tailwind utilities directly */

.table-wrapper {
    @apply bg-white shadow-sm rounded-lg border border-gray-200 overflow-hidden;
}

.table-header {
    @apply bg-gray-50 px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider;
}

.table-cell {
    @apply px-6 py-4 whitespace-nowrap text-sm text-gray-900;
}

.empty-state {
    @apply text-center py-32 px-6;
}

.empty-state-icon {
    @apply text-6xl text-gray-300 mb-12;
}

.empty-state-title {
    @apply text-xl font-semibold text-gray-900 mb-8;
}

.empty-state-description {
    @apply text-gray-600 mb-12;
}

/* HTMX Styles */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: block;
}

.htmx-request.htmx-indicator {
    display: block;
}

/* Inline editing styles */
.editable-field {
    transition: background-color 0.2s ease;
}

.editable-field:hover {
    background-color: #f3f4f6;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inline-actions {
    display: flex;
    gap: 0.25rem;
}

/* HTMX loading states */
.htmx-request {
    opacity: 0.7;
}

.htmx-request .htmx-indicator {
    opacity: 1;
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

/* All custom classes removed - use Tailwind utilities directly */
