/* DIVO Platform - Common Styles v2.0 */
/* Updated: 2025-12-02 - Full PriceCombiner styles integration */

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
}
.map-brand,
.map-article,
.map-name,
.map-price,
.map-qty,
.map-currency-column {
    position: relative;
}

.map-brand::before,
.map-article::before,
.map-name::before,
.map-price::before,
.map-qty::before,
.map-currency-column::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    border-radius: 2px;
}

.map-brand::before { background: #3498db; }
.map-article::before { background: #e91e63; }
.map-name::before { background: #43a047; }
.map-price::before { background: #fbc02d; }
.map-qty::before { background: #7e57c2; }
.map-currency-column::before { background: #8e24aa; }
/* DIVO Platform - Common Styles  */

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
}

/* Navigation */
.navbar {
    background: #2c3e50;
    color: white;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Module Selector */
.module-selector {
    position: relative;
    display: inline-block;
}

.module-selector-btn {
    background: none;
    border: none;
    color: white;
    padding: 15px 20px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-selector-btn:after {
    content: '▼';
    font-size: 12px;
}

.module-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 320px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    z-index: 1000;
}

.module-selector:hover .module-dropdown {
    display: block;
}

.module-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.module-dropdown a:hover {
    background: #f8f9fa;
}

.module-dropdown a.active {
    background: #e3f2fd;
    border-left: 3px solid #3498db;
}

.module-dropdown a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.module-icon {
    font-size: 24px;
    width: 32px;
    text-align: center;
}

.navbar-menu {
    display: flex;
    list-style: none;
}

.navbar-menu li a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
}

.navbar-menu li a:hover,
.navbar-menu li a.active {
    background: #34495e;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn:hover { 
    background: #2980b9; 
}

.btn-success { 
    background: #27ae60; 
}

.btn-success:hover { 
    background: #229954; 
}

.btn-danger { 
    background: #e74c3c; 
}

.btn-danger:hover { 
    background: #c0392b; 
}

.btn-warning { 
    background: #f39c12; 
}

.btn-warning:hover { 
    background: #d68910; 
}

.btn-secondary { 
    background: #95a5a6; 
}

.btn-secondary:hover { 
    background: #7f8c8d; 
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Alerts */
.alert {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success { 
    background: #d4edda; 
    color: #155724; 
    border: 1px solid #c3e6cb; 
}

.alert-danger { 
    background: #f8d7da; 
    color: #721c24; 
    border: 1px solid #f5c6cb; 
}

.alert-warning { 
    background: #fff3cd; 
    color: #856404; 
    border: 1px solid #ffeaa7; 
}

.alert-info { 
    background: #d1ecf1; 
    color: #0c5460; 
    border: 1px solid #bee5eb; 
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* Utility Classes */
.muted {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 8px;
}

.row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.full {
    grid-column: 1 / -1;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.form-grid label {
    display: block;
}

.form-grid label > span {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid input[type="number"],
.form-grid input[type="date"],
.form-grid input[type="password"],
.form-grid select,
.form-grid textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

select.form-control {
    cursor: pointer;
}

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
}

/* Grid variants */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Modal Dialog */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: none;
}

.close:hover {
    color: #f0f0f0;
}

/* Preview Table */
.preview-table {
    width: 100%;
    margin-top: 20px;
    font-size: 13px;
    border-collapse: collapse;
}

.preview-table th {
    background: #f8f9fa;
    padding: 8px;
    text-align: left;
    border: 1px solid #dee2e6;
}

.preview-table td {
    padding: 6px 8px;
    border: 1px solid #dee2e6;
}

/* Section Titles */
.section-title {
    margin: 0 0 10px;
    color: #666;
    font-size: 16px;
    font-weight: 600;
}
