/* Enexis ZCR3 Tool - Internal Tool Styling */

:root {
    --enexis-pink: #df0073;
    --enexis-green: #bddb00;
    --enexis-white: #ffffff;
    --enexis-light-gray: #f8f9fa;
    --enexis-dark-gray: #6c757d;
    --enexis-black: #212529;
    --enexis-blue: #0066cc;
    --border-color: #dee2e6;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--enexis-light-gray);
    color: var(--enexis-black);
    font-size: 14px;
}

.navbar {
    background-color: var(--enexis-white);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    color: var(--enexis-pink) !important;
    font-weight: 600;
    font-size: 1.2rem;
}

.navbar-brand:hover {
    color: var(--enexis-pink) !important;
    opacity: 0.8;
}

.navbar-nav .nav-link {
    color: var(--enexis-pink) !important;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: var(--enexis-pink) !important;
    opacity: 0.8;
}

.navbar-toggler {
    border-color: var(--enexis-pink);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23df0073' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.enexis-logo {
    height: 32px;
    width: 32px;
    margin-right: 8px;
}

/* Card Styles - Simplified */
.card {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: var(--enexis-white);
    color: var(--enexis-pink);
    border-radius: 6px 6px 0 0 !important;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

/* Button Styles - Simplified */
.btn-primary {
    background-color: var(--enexis-pink);
    border-color: var(--enexis-pink);
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    padding: 0.5rem 1rem;
}

.btn-primary:hover {
    background-color: #c40661;
    border-color: #c40661;
}

.btn-enexis-pink {
    background-color: var(--enexis-pink);
    border-color: var(--enexis-pink);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    padding: 0.5rem 1rem;
}

.btn-enexis-pink:hover {
    background-color: #c40661;
    border-color: #c40661;
    color: white;
}

.btn-enexis-pink:focus {
    box-shadow: 0 0 0 0.2rem rgba(223, 7, 115, 0.25);
}

/* Enexis branded elements */
.border-enexis-pink {
    border-color: var(--enexis-pink) !important;
}

.bg-enexis-pink {
    background-color: var(--enexis-pink) !important;
    color: white !important;
}

.btn-success {
    background-color: var(--enexis-green);
    border-color: var(--enexis-green);
    color: var(--enexis-black);
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
}

.btn-success:hover {
    background-color: #a8c300;
    border-color: #a8c300;
    color: var(--enexis-black);
}

.btn-outline-primary {
    color: var(--enexis-pink);
    border-color: var(--enexis-pink);
    border-radius: 4px;
    font-size: 14px;
}

.btn-outline-primary:hover {
    background-color: var(--enexis-pink);
    border-color: var(--enexis-pink);
}

/* Form Styles */
.form-control {
    border-radius: 4px;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    font-size: 14px;
}

.form-control:focus {
    border-color: var(--enexis-pink);
    box-shadow: 0 0 0 0.2rem rgba(223, 0, 115, 0.25);
}

/* File Upload Area - Simplified */
.upload-area {
    border: 2px dashed var(--enexis-pink);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    text-align: center;
    background-color: var(--enexis-white);
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--enexis-green);
    background-color: #fafafa;
}

.upload-area.dragover {
    border-color: var(--enexis-green);
    background-color: #f0fff0;
}

.upload-icon {
    font-size: 2rem;
    color: var(--enexis-pink);
    margin-bottom: 0.5rem;
}

/* Zone Visualization - Simplified */
.zone-container {
    margin-bottom: 1.5rem;
}

.zone-block {
    background-color: var(--enexis-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.zone-header {
    background-color: var(--enexis-white);
    color: var(--enexis-pink);
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.zone-stats {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.stat-badge {
    background-color: var(--enexis-light-gray);
    color: var(--enexis-black);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.asset-card {
    background-color: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.asset-name {
    font-weight: 600;
    color: var(--enexis-pink);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.risk-badge {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.risk-low {
    background-color: #d4edda;
    color: #155724;
}

.risk-medium {
    background-color: #fff3cd;
    color: #856404;
}

.risk-high {
    background-color: #f8d7da;
    color: #721c24;
}

/* Process Flow - Simplified */
.process-flow {
    background-color: var(--enexis-white);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.process-step {
    text-align: center;
    margin-bottom: 1.5rem;
}

.process-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--enexis-pink);
    color: var(--enexis-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.5rem;
}

.process-arrow {
    color: var(--enexis-pink);
    font-size: 1.5rem;
    margin: 0.75rem 0;
}

/* Alert Styles */
.alert-success {
    background-color: #d4edda;
    border-color: var(--enexis-green);
    color: #155724;
    border-radius: 4px;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: var(--enexis-pink);
    color: #721c24;
    border-radius: 4px;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: var(--enexis-blue);
    color: #0c5460;
    border-radius: 4px;
}

/* Footer */
.footer {
    background-color: var(--enexis-black);
    color: var(--enexis-white);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* Headings - Smaller sizes */
h1 { font-size: 1.75rem; font-weight: 600; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.9rem; font-weight: 600; }

/* Responsive Design */
@media (max-width: 768px) {
    .zone-stats {
        flex-direction: column;
    }
    
    .upload-area {
        padding: 1.5rem 1rem;
    }
    
    .process-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    body {
        font-size: 13px;
    }
}

/* Utility Classes */
.text-enexis-pink {
    color: var(--enexis-pink) !important;
}

.text-enexis-green {
    color: var(--enexis-green) !important;
}

.bg-enexis-pink {
    background-color: var(--enexis-pink) !important;
}

.bg-enexis-green {
    background-color: var(--enexis-green) !important;
}

.border-enexis-pink {
    border-color: var(--enexis-pink) !important;
}

.border-enexis-green {
    border-color: var(--enexis-green) !important;
}

/* Compact Tile Styles */
.zone-tile, .conduit-tile {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zone-tile:hover, .conduit-tile:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.zone-tile .card-header,
.conduit-tile .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.zone-tile .card-body,
.conduit-tile .card-body {
    padding: 0.75rem;
}

.zone-tile .card-footer,
.conduit-tile .card-footer {
    background-color: rgba(248, 249, 250, 0.5);
    border-top: 1px solid var(--border-color);
}

.asset-list {
    max-height: 120px;
    overflow-y: auto;
}

.asset-list::-webkit-scrollbar {
    width: 4px;
}

.asset-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.asset-list::-webkit-scrollbar-thumb {
    background: var(--enexis-pink);
    border-radius: 2px;
}

/* Interactive Graph Styles */
#network-graph {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background: var(--enexis-white);
}

.tooltip {
    font-size: 12px;
    z-index: 1000;
}

/* Button Group Responsive */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Grid Layout Improvements */
.row.g-3 > .col-xl-3,
.row.g-3 > .col-lg-4,
.row.g-3 > .col-md-6 {
    min-height: 200px;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 576px) {
    .btn-group-sm .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    #network-graph {
        height: 300px !important;
    }
    
    .card-header h5 {
        font-size: 0.9rem;
    }
    
    .row.g-3 > .col-xl-3,
    .row.g-3 > .col-lg-4,
    .row.g-3 > .col-md-6 {
        min-height: 180px;
    }
    
    .zone-tile .card-body,
    .conduit-tile .card-body {
        padding: 0.5rem;
    }
    
    .asset-list {
        max-height: 100px;
    }
}