/**
 * Styles pour Conceptor
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    min-height: 100vh;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2em;
    margin-bottom: 15px;
}

header nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5568d3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    margin: 0 2px;
}

/* Actions */
.actions {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Table */
.table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

.features-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.features-table th {
    background-color: #667eea;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.features-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.features-table tr:hover {
    background-color: #f8f9fa;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge.status-idee {
    background-color: #e3f2fd;
    color: #1976d2;
}

.badge.status-en_cours {
    background-color: #fff3e0;
    color: #f57c00;
}

.badge.status-terminee {
    background-color: #e8f5e9;
    color: #388e3c;
}

.badge.priority-must {
    background-color: #ffebee;
    color: #c62828;
}

.badge.priority-should {
    background-color: #fff3e0;
    color: #e65100;
}

.badge.priority-could {
    background-color: #e3f2fd;
    color: #1565c0;
}

.badge.priority-wont {
    background-color: #f3e5f5;
    color: #6a1b9a;
}

/* Tags */
.tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin: 2px;
}

/* Forms */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.required {
    color: #dc3545;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

/* Message */
.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Empty message */
.empty-message {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 1.1em;
}

.empty-message a {
    color: #667eea;
    text-decoration: none;
}

.empty-message a:hover {
    text-decoration: underline;
}

/* Diagram */
.diagram-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

#diagram {
    border: 1px solid #e0e0e0;
    background-color: #fafafa;
}

.diagram-node {
    cursor: pointer;
}

.diagram-node:hover {
    opacity: 0.8;
}

.diagram-legend {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.diagram-legend h3 {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.diagram-legend ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.diagram-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .features-table {
        font-size: 12px;
    }

    .features-table th,
    .features-table td {
        padding: 8px;
    }
}

