/**
 * Brigadnice.cz - Main Stylesheet
 * Design inspired by HeroHero.co
 */

/* ============================================ */
/* Inter Font */
/* ============================================ */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-roman.var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF; /* Basic Latin + Latin-1 Supplement */
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-roman.var-wU.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-017F; /* Latin Extended-A - Czech characters */
}

/* ============================================ */
/* CSS Variables */
/* ============================================ */
:root {
    --primary: #0070c0;
    --primary-dark: #005a9c;
    --primary-light: #3d8fd1;
    --gradient: linear-gradient(135deg, #0070c0 0%, #00a8e8 100%);
    
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    
    --dark: #1a1a1a;
    --gray-dark: #343a40;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --input-border: #d1d4d7;
    --white: #ffffff;
    
    /* Override Bootstrap primary color */
    --bs-primary: #0070c0;
    --bs-primary-rgb: 0, 112, 192;
    --bs-link-color: #0070c0;
    --bs-link-hover-color: #005a9c;
}

/* ============================================ */
/* Bootstrap Component Overrides */
/* ============================================ */

/* Nav Pills */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #0070c0;
    color: #fff;
}

.nav-pills .nav-link {
    color: #0070c0;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus {
    color: #005a9c;
}

.nav-pills .nav-link.active:hover,
.nav-pills .nav-link.active:focus {
    color: #fff;
}

/* Buttons */
.btn-primary {
    background-color: #0070c0;
    border-color: #0070c0;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #005a9c;
    border-color: #005a9c;
}

.btn-primary:focus,
.btn-primary.focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 112, 192, 0.5);
}

.btn-outline-primary {
    color: #0070c0;
    border-color: #0070c0;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: #0070c0;
    border-color: #0070c0;
    color: #fff;
}

/* Links */
a {
    color: #0070c0;
}

a:hover {
    color: #005a9c;
}

/* Badges */
.badge.bg-primary {
    background-color: #0070c0 !important;
}

/* Text */
.text-primary {
    color: #0070c0 !important;
}

/* Borders */
.border-primary {
    border-color: #0070c0 !important;
}

/* Background */
.bg-primary {
    background-color: #0070c0 !important;
}

/* Form elements */
.form-check-input:checked {
    background-color: #0070c0;
    border-color: #0070c0;
}

.form-check-input:focus {
    border-color: #0070c0;
    box-shadow: 0 0 0 0.25rem rgba(0, 112, 192, 0.25);
}

/* Pagination */
.page-link {
    color: #0070c0;
}

.page-item.active .page-link {
    background-color: #0070c0;
    border-color: #0070c0;
}

.page-link:hover {
    color: #005a9c;
}

/* Progress bars */
.progress-bar {
    background-color: #0070c0;
}

/* List group */
.list-group-item.active {
    background-color: #0070c0;
    border-color: #0070c0;
}

/* Dropdown */
.dropdown-item.active,
.dropdown-item:active {
    background-color: #0070c0;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 112, 192, 0.3);
}

/* Cards */
.card {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Form Controls */
.form-control {
    border-radius: 6px;
    border: 2px solid var(--input-border);
    padding: 0.75rem 1rem;
}

.form-select {
    border-radius: 6px;
    border: 2px solid var(--input-border);
    padding: 0.75rem 2.25rem 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 112, 192, 0.15);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--gray-light);
    padding: 1.5rem;
    z-index: 1000;
}

.sidebar-logo {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 2rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    border-radius: 6px;
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.sidebar-menu a:hover {
    background: var(--gray-light);
    color: var(--primary);
}

.sidebar-menu a.active {
    background: rgba(0, 112, 192, 0.1);
    color: var(--primary);
    font-weight: 600;
}

/* Main Content with Sidebar */
.main-content {
    margin-left: 280px;
    padding: 2rem;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 112, 192, 0.4);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    z-index: 999;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 25px rgba(0, 112, 192, 0.5);
}

/* Alerts */
.alert {
    border-radius: 6px;
    border: none;
}

/* Global border-radius overrides */
.btn {
    border-radius: 6px !important;
    padding: 0.75rem 1rem;
    border-width: 2px;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    border-radius: 5px !important;
}

.btn-lg {
    padding: 1rem 1.5rem !important;
    font-size: 1.125rem !important;
}

.badge {
    border-radius: 4px !important;
}

.card-header:first-child {
    border-radius: 8px 8px 0 0;
}

.card-footer:last-child {
    border-radius: 0 0 8px 8px;
}

.input-group > .form-control,
.input-group > .form-select,
.input-group > .btn {
    border-radius: 6px;
}

.input-group > :not(:first-child) {
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group > :not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.modal-content {
    border-radius: 8px;
}

.dropdown-menu {
    border-radius: 6px;
}

.list-group-item:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.list-group-item:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.nav-pills .nav-link {
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Lighter placeholders */
::placeholder { color: #c5c5c5 !important; opacity: 1 !important; }
::-webkit-input-placeholder { color: #c5c5c5 !important; opacity: 1 !important; }
::-moz-placeholder { color: #c5c5c5 !important; opacity: 1 !important; }
:-ms-input-placeholder { color: #c5c5c5 !important; opacity: 1 !important; }
.form-control::placeholder { color: #c5c5c5 !important; opacity: 1 !important; }
.form-control::-webkit-input-placeholder { color: #c5c5c5 !important; }
.form-control::-moz-placeholder { color: #c5c5c5 !important; }
.form-select::placeholder { color: #c5c5c5 !important; opacity: 1 !important; }
