/* Workflow Page Specific Styles */

/* Variabili CSS necessarie */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #34c759;
    --accent-color: #ff9500;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
}

/* Header styles matching analysis_toolkit.html */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.header p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.header i {
    margin-right: 0.5rem;
}

/* Container layout principale */
.workflow-main-container {
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #7c3aed 0%, #10b981 100%);
    padding: 3rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workflow-wrapper {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* Tools Card */
.tools-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* Tool Items */
.tool-item {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #f9fafb;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tool-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tool-item:last-of-type {
    margin-bottom: 2rem;
}

/* Tool Icons */
.tool-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.tool-icon i {
    font-size: 1.5rem;
    color: white;
}

.tool-icon.consortium {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.tool-icon.compliance {
    background: linear-gradient(135deg, #8b5cf6, #6b21a8);
}

.tool-icon.dpa {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.tool-icon.risk {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.tool-icon.stakeholder {
    background: linear-gradient(135deg, #10b981, #059669);
}

.tool-icon.ethics {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

/* Tool Content */
.tool-content {
    flex: 1;
}

.tool-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.tool-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Tool Arrow */
.tool-arrow {
    color: #9ca3af;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-item:hover .tool-arrow {
    opacity: 1;
}

/* Action Button */
.workflow-action-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.workflow-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.workflow-action-btn:active {
    transform: translateY(0);
}

.workflow-action-btn i {
    font-size: 1rem;
}

/* Modal Styles */
.tool-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #9ca3af;
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #374151;
}

/* Container for footer */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .workflow-main-container {
        padding: 1rem;
        min-height: calc(100vh - 150px);
    }
    
    .tools-card {
        padding: 1.5rem;
    }
    
    .tool-item {
        padding: 1rem;
    }
    
    .tool-icon {
        width: 40px;
        height: 40px;
    }
    
    .tool-icon i {
        font-size: 1.25rem;
    }
    
    .tool-title {
        font-size: 1rem;
    }
    
    .tool-description {
        font-size: 0.813rem;
    }
    
    .workflow-action-btn {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .container {
        padding: 2rem 1rem;
    }
}

@media (max-width: 640px) {
    .header h1 {
        font-size: 1.75rem;
    }
    
    .header {
        padding: 2rem 0;
    }
    
    .container {
        padding: 2rem 1rem;
    }
}