/**
 * ZeroTracas Project Manager - Public Styles
 * Style moderne inspiré d'Asana/Monday
 */

:root {
    --ztpm-primary: #6366f1;
    --ztpm-primary-hover: #4f46e5;
    --ztpm-secondary: #f59e0b;
    --ztpm-success: #10b981;
    --ztpm-danger: #ef4444;
    --ztpm-warning: #f59e0b;
    --ztpm-info: #3b82f6;
    
    --ztpm-bg-primary: #ffffff;
    --ztpm-bg-secondary: #f8fafc;
    --ztpm-bg-tertiary: #f1f5f9;
    
    --ztpm-text-primary: #0f172a;
    --ztpm-text-secondary: #64748b;
    --ztpm-text-tertiary: #94a3b8;
    
    --ztpm-border: #e2e8f0;
    --ztpm-border-hover: #cbd5e1;
    
    --ztpm-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --ztpm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --ztpm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --ztpm-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --ztpm-radius-sm: 6px;
    --ztpm-radius-md: 8px;
    --ztpm-radius-lg: 12px;
    --ztpm-radius-xl: 16px;
    
    --ztpm-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   INDUSTRY SELECTOR (Image 1)
   ======================================== */

.ztpm-industry-selector-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ztpm-industry-header {
    text-align: center;
    margin-bottom: 40px;
}

.ztpm-industry-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--ztpm-text-primary);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.ztpm-subtitle {
    font-size: 16px;
    color: var(--ztpm-text-secondary);
    margin: 0;
}

.ztpm-industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.ztpm-industry-card {
    background: var(--ztpm-bg-primary);
    border: 2px solid var(--ztpm-border);
    border-radius: var(--ztpm-radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: var(--ztpm-transition);
    position: relative;
    overflow: hidden;
}

.ztpm-industry-card:hover {
    border-color: var(--ztpm-primary);
    box-shadow: var(--ztpm-shadow-md);
    transform: translateY(-2px);
}

.ztpm-industry-card.selected {
    border-color: var(--ztpm-primary);
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
    box-shadow: var(--ztpm-shadow-md);
}

.ztpm-industry-card.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--ztpm-primary);
}

.ztpm-industry-card-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ztpm-industry-checkbox {
    position: absolute;
    top: 16px;
    right: 16px;
}

.ztpm-industry-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid var(--ztpm-border);
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    background: white;
    transition: var(--ztpm-transition);
    position: relative;
}

.ztpm-industry-checkbox input[type="checkbox"]:checked {
    background: var(--ztpm-primary);
    border-color: var(--ztpm-primary);
}

.ztpm-industry-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.ztpm-industry-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--ztpm-primary) 0%, var(--ztpm-primary-hover) 100%);
    border-radius: var(--ztpm-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ztpm-transition);
}

.ztpm-industry-card:hover .ztpm-industry-icon {
    transform: scale(1.1);
}

.ztpm-industry-icon .dashicons {
    font-size: 24px;
    color: white;
    width: 24px;
    height: 24px;
}

.ztpm-industry-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ztpm-text-primary);
    margin: 0 0 8px 0;
}

.ztpm-industry-content p {
    font-size: 14px;
    color: var(--ztpm-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Actions */
.ztpm-industry-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--ztpm-bg-secondary);
    border-radius: var(--ztpm-radius-lg);
    margin-bottom: 40px;
}

.ztpm-selected-count {
    font-size: 16px;
    font-weight: 600;
    color: var(--ztpm-text-primary);
}

.ztpm-selected-count span {
    display: inline-block;
    min-width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: var(--ztpm-primary);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    margin-right: 8px;
}

.ztpm-btn-primary {
    background: linear-gradient(135deg, var(--ztpm-primary) 0%, var(--ztpm-primary-hover) 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--ztpm-radius-md);
    cursor: pointer;
    transition: var(--ztpm-transition);
    box-shadow: var(--ztpm-shadow-sm);
}

.ztpm-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--ztpm-shadow-md);
}

.ztpm-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Features Preview */
.ztpm-features-preview {
    background: white;
    border: 1px solid var(--ztpm-border);
    border-radius: var(--ztpm-radius-lg);
    padding: 32px;
    margin-top: 40px;
}

.ztpm-features-preview h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ztpm-text-primary);
    margin: 0 0 24px 0;
}

.ztpm-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.ztpm-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 15px;
    color: var(--ztpm-text-primary);
}

.ztpm-features-list li .dashicons {
    color: var(--ztpm-success);
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ========================================
   PROJECT BOARD (Kanban)
   ======================================== */

.ztpm-project-board {
    padding: 20px;
    background: var(--ztpm-bg-secondary);
    min-height: 100vh;
}

.ztpm-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: white;
    padding: 20px;
    border-radius: var(--ztpm-radius-lg);
    box-shadow: var(--ztpm-shadow-sm);
}

.ztpm-board-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    align-items: start;
}

.ztpm-column {
    background: var(--ztpm-bg-tertiary);
    border-radius: var(--ztpm-radius-lg);
    padding: 16px;
    min-height: 500px;
}

.ztpm-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ztpm-border);
}

.ztpm-column-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ztpm-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ztpm-column-count {
    background: var(--ztpm-text-tertiary);
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
}

.ztpm-task-card {
    background: white;
    border-radius: var(--ztpm-radius-md);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--ztpm-shadow-sm);
    cursor: pointer;
    transition: var(--ztpm-transition);
    border: 1px solid transparent;
}

.ztpm-task-card:hover {
    box-shadow: var(--ztpm-shadow-md);
    border-color: var(--ztpm-primary);
    transform: translateY(-2px);
}

.ztpm-task-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ztpm-text-primary);
    margin: 0 0 8px 0;
}

.ztpm-task-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: var(--ztpm-text-secondary);
    flex-wrap: wrap;
}

.ztpm-task-priority {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ztpm-task-priority.high {
    background: #fee2e2;
    color: #dc2626;
}

.ztpm-task-priority.medium {
    background: #fef3c7;
    color: #d97706;
}

.ztpm-task-priority.low {
    background: #dbeafe;
    color: #2563eb;
}

/* ========================================
   DASHBOARD
   ======================================== */

.ztpm-dashboard {
    padding: 20px;
}

.ztpm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.ztpm-stat-card {
    background: white;
    border-radius: var(--ztpm-radius-lg);
    padding: 24px;
    box-shadow: var(--ztpm-shadow-sm);
    border-left: 4px solid var(--ztpm-primary);
}

.ztpm-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--ztpm-primary);
    margin: 0;
}

.ztpm-stat-label {
    font-size: 14px;
    color: var(--ztpm-text-secondary);
    margin: 8px 0 0 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .ztpm-industry-grid {
        grid-template-columns: 1fr;
    }
    
    .ztpm-board-columns {
        grid-template-columns: 1fr;
    }
    
    .ztpm-industry-actions {
        flex-direction: column;
        gap: 16px;
    }
    
    .ztpm-features-list {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ztpm-industry-card,
.ztpm-task-card,
.ztpm-stat-card {
    animation: fadeIn 0.3s ease-out;
}

/* ========================================
   UTILITIES
   ======================================== */

.ztpm-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    border-top-color: var(--ztpm-primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ztpm-hidden {
    display: none !important;
}

.ztpm-flex {
    display: flex;
}

.ztpm-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ztpm-gap-sm {
    gap: 8px;
}

.ztpm-gap-md {
    gap: 16px;
}

.ztpm-gap-lg {
    gap: 24px;
}
