/*
 * Copyright (c) 2024 Bionic Rooster AB
 * All rights reserved.
 *
 * This code is the property of Bionic Rooster AB and is protected by copyright law.
 * Unauthorized copying, distribution, or use of this code is strictly prohibited.
 */

/* Base styles */
:root {
    --primary-color: #000;
    --secondary-color: #f5f5f5;
    --accent-color: #e24a4a;
    --text-color: #333;
    --border-color: #ddd;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.nav {
    background-color: var(--primary-color);
    padding: 1rem 0;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary,
.btn-outline-primary {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}
.btn-primary:hover,
.btn-outline-primary:hover,
.btn-primary:focus,
.btn-outline-primary:focus {
    background-color: #222 !important;
    border-color: #222 !important;
    color: #fff !important;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th,
.table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
}

.table th {
    background-color: var(--secondary-color);
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

/* Make checked checkboxes black */
input[type="checkbox"].form-check-input:checked {
    accent-color: #000;
}

/* Make Bootstrap checkboxes black with a white checkmark */
.form-check-input[type="checkbox"] {
    background-color: #fff;
    border: 1.5px solid #000;
}
.form-check-input[type="checkbox"]:checked {
    background-color: #000;
    border-color: #000;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M13.485 1.929a1.5 1.5 0 0 1 0 2.121l-7.071 7.07-3.182-3.182a1.5 1.5 0 1 1 2.121-2.121l1.061 1.06 6.01-6.01a1.5 1.5 0 0 1 2.121 0z'/%3e%3c/svg%3e");
}

/* Make all buttons black with white text */
button, .btn, input[type="submit"], input[type="button"] {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

/* Optional: On hover, keep buttons black or slightly lighter */
button:hover, .btn:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background-color: #222 !important;
    border-color: #222 !important;
}

/* Make breadcrumb links black globally */
.breadcrumb a,
.breadcrumb a:visited {
    color: #000 !important;
    text-decoration: underline;
}
.breadcrumb a:hover,
.breadcrumb a:active {
    color: #222 !important;
    text-decoration: underline;
} 