/* Custom styles for Digital Persona Manager - Asana-inspired */

/* ============================================
   ASANA DESIGN PRINCIPLES
   ============================================
   1. Generous whitespace (40-60px between sections)
   2. Clear visual hierarchy with typography
   3. Muted colors for secondary information
   4. Subtle borders instead of heavy shadows
   5. Clean, minimal interactions
   ============================================ */

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

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

/* Smooth transitions - Asana-style subtlety */
* {
    transition: background-color 0.15s ease,
                border-color 0.15s ease,
                color 0.15s ease,
                box-shadow 0.15s ease,
                transform 0.15s ease;
}

/* Asana-inspired spacing system */
.asana-section-spacing {
    margin-bottom: 48px;
}

.asana-card-spacing {
    padding: 32px;
}

.asana-item-spacing {
    margin-bottom: 16px;
}

/* Typography - Clear hierarchy like Asana */
h1 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

h2 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.asana-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.asana-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.asana-meta-text {
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}

/* Card styling - Subtle borders instead of shadows */
.asana-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.asana-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.asana-card-active {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px #6366f1;
}

/* Button styling - Minimal and clean */
.asana-btn {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.asana-btn-primary {
    background: #1f2937;
    color: white;
    border: none;
}

.asana-btn-primary:hover {
    background: #111827;
    transform: translateY(-1px);
}

.asana-btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.asana-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Task/List rows - Clean like Asana */
.asana-list-item {
    border-bottom: 1px solid #f3f4f6;
    padding: 16px 20px;
    transition: background-color 0.15s ease;
}

.asana-list-item:hover {
    background-color: #f9fafb;
}

.asana-list-item:last-child {
    border-bottom: none;
}

/* Status dots - Minimal indicators */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-dot-pending { background-color: #f59e0b; }
.status-dot-approved { background-color: #10b981; }
.status-dot-rejected { background-color: #ef4444; }
.status-dot-sent { background-color: #3b82f6; }
.status-dot-failed { background-color: #9ca3af; }

/* Badge styling - Subtle backgrounds */
.asana-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid;
}

.asana-badge-purple {
    background-color: #f5f3ff;
    color: #7c3aed;
    border-color: #e9d5ff;
}

.asana-badge-blue {
    background-color: #eff6ff;
    color: #2563eb;
    border-color: #dbeafe;
}

.asana-badge-green {
    background-color: #f0fdf4;
    color: #16a34a;
    border-color: #dcfce7;
}

.asana-badge-amber {
    background-color: #fffbeb;
    color: #d97706;
    border-color: #fef3c7;
}

/* Form styling improvements - Asana-inspired */
.django-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.django-form input[type="text"],
.django-form input[type="email"],
.django-form input[type="password"],
.django-form textarea,
.django-form select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.django-form input:focus,
.django-form textarea:focus,
.django-form select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.django-form .helptext {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

.django-form .errorlist {
    margin-top: 6px;
    font-size: 13px;
    color: #dc2626;
    list-style: none;
    padding: 0;
}

/* Progress bars - Smooth and clean */
.progress-bar {
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-bar-gradient {
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
}

/* Collaboration indicators - Subtle team context */
.team-context {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background-color: #f9fafb;
    border-radius: 6px;
    font-size: 12px;
    color: #6b7280;
}

/* Avatar styling - Clean and modern */
.asana-avatar {
    border-radius: 50%;
    object-fit: cover;
}

.asana-avatar-ring {
    box-shadow: 0 0 0 2px white, 0 0 0 3px #e5e7eb;
}

/* Whitespace utilities - Asana's generous spacing */
.asana-spacing-xs { margin-bottom: 16px; }
.asana-spacing-sm { margin-bottom: 24px; }
.asana-spacing-md { margin-bottom: 32px; }
.asana-spacing-lg { margin-bottom: 48px; }
.asana-spacing-xl { margin-bottom: 64px; }

/* Hover effects - Subtle and professional */
.hover-lift {
    transition: transform 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* Focus states - Accessible and clear */
*:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}
