/* Custom styles for SWOT Visimob */

/* Visimob Brand Colors */
:root {
    --visimob-coral: #C25B56;
    --visimob-coral-dark: #A94A45;
    --visimob-coral-light: #D4807C;
    --visimob-black: #000000;
}

body {
    background-color: #f8f9fa;
}

/* Navbar Visimob */
.navbar.bg-primary {
    background-color: var(--visimob-coral) !important;
}

/* Primary buttons */
.btn-primary {
    background-color: var(--visimob-coral);
    border-color: var(--visimob-coral);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--visimob-coral-dark);
    border-color: var(--visimob-coral-dark);
}

.btn-outline-primary {
    color: var(--visimob-coral);
    border-color: var(--visimob-coral);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--visimob-coral);
    border-color: var(--visimob-coral);
    color: white;
}

/* Links */
a {
    color: var(--visimob-coral);
}

a:hover {
    color: var(--visimob-coral-dark);
}

/* Navbar links stay white */
.navbar a,
.navbar .nav-link,
.navbar .navbar-brand {
    color: white !important;
}

.navbar .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Dropdown items should have dark text */
.navbar .dropdown-menu .dropdown-item {
    color: #212529 !important;
}

.navbar .dropdown-menu .dropdown-item:hover {
    color: #212529 !important;
    background-color: #f8f9fa;
}

/* Form focus */
.form-control:focus {
    border-color: var(--visimob-coral);
    box-shadow: 0 0 0 0.2rem rgba(194, 91, 86, 0.25);
}

/* Badge info override */
.badge.bg-info {
    background-color: var(--visimob-coral) !important;
}

/* Dropdown active */
.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--visimob-coral);
}

/* SWOT boxes */
.swot-box {
    padding: 1rem;
    border-radius: 0.5rem;
    height: 100%;
}

.swot-box h6 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.swot-strengths {
    background-color: rgba(25, 135, 84, 0.1);
    border-left: 4px solid #198754;
}

.swot-weaknesses {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
}

.swot-opportunities {
    background-color: rgba(13, 202, 240, 0.1);
    border-left: 4px solid #0dcaf0;
}

.swot-threats {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
}

/* Card hover effect */
.card {
    transition: box-shadow 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Navbar brand */
.navbar-brand strong {
    font-weight: 700;
}

/* Form improvements */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* SWOT item inputs */
.swot-item {
    animation: fadeIn 0.2s ease-in;
}

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

/* List group improvements */
.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

/* Badge improvements */
.badge {
    font-weight: 500;
}

/* Footer */
footer {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

/* Public form styling */
.card-header small {
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .swot-box {
        margin-bottom: 1rem;
    }
}

/* OKR Styles */
.okr-card {
    border: 2px solid #e9ecef;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.okr-card:hover {
    border-color: #0d6efd;
}

.okr-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 1rem;
}

.key-results-list {
    padding: 0;
}

.key-result-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.key-result-item:last-child {
    margin-bottom: 0;
}

.kr-badge {
    display: inline-block;
    background: #e7f1ff;
    color: #0d6efd;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.kr-text {
    color: #495057;
}

.kr-author {
    display: block;
    margin-top: 0.25rem;
    margin-left: 2.5rem;
}

.key-result-input {
    animation: fadeIn 0.2s ease-in;
}

/* OKR button in project detail */
.btn-warning {
    color: #000;
}

.btn-warning:hover {
    color: #000;
}

/* 5W2H Styles */
.fivew2h-card {
    border: 2px solid #e9ecef;
    transition: border-color 0.2s ease-in-out;
}

.fivew2h-card:hover {
    border-color: #0dcaf0;
}

.fivew2h-box {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    height: 100%;
    border-left: 4px solid #6c757d;
}

.fivew2h-label {
    margin-bottom: 0.5rem;
}

.fivew2h-label .badge {
    background: #6c757d;
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
    margin-right: 0.5rem;
}

.fivew2h-label small {
    color: #6c757d;
    font-size: 0.75rem;
}

.fivew2h-content {
    color: #333;
    white-space: pre-line;
}

.fivew2h-what { border-left-color: #0d6efd; }
.fivew2h-what .badge { background: #0d6efd; }

.fivew2h-why { border-left-color: #6f42c1; }
.fivew2h-why .badge { background: #6f42c1; }

.fivew2h-where { border-left-color: #198754; }
.fivew2h-where .badge { background: #198754; }

.fivew2h-when { border-left-color: #fd7e14; }
.fivew2h-when .badge { background: #fd7e14; }

.fivew2h-who { border-left-color: #dc3545; }
.fivew2h-who .badge { background: #dc3545; }

.fivew2h-how { border-left-color: #0dcaf0; }
.fivew2h-how .badge { background: #0dcaf0; color: #000; }

.fivew2h-howmuch { border-left-color: #ffc107; }
.fivew2h-howmuch .badge { background: #ffc107; color: #000; }

/* Strategic Dashboard Styles */
.strategic-dashboard-card {
    border: 2px solid #e9ecef;
    transition: border-color 0.2s ease-in-out;
}

.strategic-dashboard-card:hover {
    border-color: #6610f2;
}

.dashboard-area {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    height: 100%;
}

.area-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #0d6efd;
    border-radius: 0.5rem 0.5rem 0 0;
}

.area-header strong {
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #495057;
}

.area-metrics {
    padding: 0.75rem;
    min-height: 100px;
}

.metric-item {
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    transition: background 0.15s ease-in-out;
}

.metric-item:hover {
    background: #e9ecef;
}

.metric-item:last-child {
    margin-bottom: 0;
}

.metric-content {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.metric-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.metric-description {
    font-size: 0.85rem;
    color: #333;
}

.metric-responsible {
    font-size: 0.75rem;
    margin-left: 1.4rem;
    display: block;
}

/* Responsible type colors */
.metric-icon.text-success { color: #198754 !important; }
.metric-icon.text-danger { color: #dc3545 !important; }
.metric-icon.text-warning { color: #fd7e14 !important; }

/* Modal improvements for dashboard */
.modal-content {
    border: none;
    border-radius: 0.75rem;
}

.modal-header {
    border-radius: 0.75rem 0.75rem 0 0;
}

/* Canvas Disrupt Styles */
.canvas-disrupt-card {
    border: 2px solid #e9ecef;
    transition: border-color 0.2s ease-in-out;
}

.canvas-disrupt-card:hover {
    border-color: #333;
}

.canvas-section {
    border: 1px solid #dee2e6;
}

.canvas-section-body {
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
}

.canvas-item {
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.canvas-item:hover {
    background: #e9ecef;
}

.canvas-item-actions {
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

.canvas-item:hover .canvas-item-actions {
    opacity: 1;
}

.hypothesis-card {
    border: 1px solid #17a2b8;
}

.hypothesis-card .card-header {
    border-bottom: 2px solid #17a2b8;
}

.hypothesis-card .card-footer {
    border-top: 2px solid #ffc107;
}
