/**
 * Takeuchi Service Management System
 * Main Stylesheet
 */

/* Reset en basis stijlen */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #000000; /* C=0 M=0 Y=0 K=100 */
  background-color: #f8f9fa;
  line-height: 1.6;
}

/* Header en navigatie */
.takeuchi-logo-container {
  background-color: #E30613; /* C=0 M=100 Y=100 K=0 */
  padding: 5px 15px;
  max-width: 200px; /* Beperk de breedte van de container */
  display: inline-block;
}

.takeuchi-logo {
  height: 45px;
  width: auto;
  display: block;
}

.navbar-dark.bg-dark {
  background-color: #E30613; /* Takeuchi rood voor de navigatiebalk */
}

/* Zorg ervoor dat Bootstrap's bg-dark overschreven wordt */
.bg-dark {
  background-color: #E30613;
}

.navbar-dark .navbar-brand {
  color: #ffffff;
  font-weight: bold;
}

.navbar-dark .navbar-nav .nav-link {
  color: #ffffff;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: rgba(255, 255, 255, 0.8);
}

.navbar-dark .navbar-nav .nav-link.active {
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Dropdown menu's */
.dropdown-menu {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #E30613;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding-top: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #f8f9fa;
  border-right: 1px solid #dee2e6;
}

.sidebar .nav-link {
  color: #333;
  padding: 0.5rem 1rem;
  margin-bottom: 0.2rem;
  border-radius: 0.25rem;
}

.sidebar .nav-link:hover {
  background-color: #e9ecef;
}

.sidebar .nav-link.active {
  color: #E30613;
  background-color: rgba(227, 6, 19, 0.1);
}

.sidebar-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Main content gebied */
main {
  padding: 1rem;
}

/* Cards */
.card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
}

.card-header {
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  padding: 0.75rem 1.25rem;
}

.card-header:first-child {
  border-radius: calc(0.5rem - 1px) calc(0.5rem - 1px) 0 0;
}

.card-title {
  margin-bottom: 0;
  font-weight: 500;
}

/* Tabellen */
.table {
  width: 100%;
  margin-bottom: 1rem;
  background-color: transparent;
}

.table th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
}

.table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-sm th,
.table-sm td {
  padding: 0.3rem;
}

/* Formulieren */
.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #E30613;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(227, 6, 19, 0.25);
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary {
  color: #fff;
  background-color: #E30613;
  border-color: #E30613;
}

.btn-primary:hover {
  color: #fff;
  background-color: #c00510;
  border-color: #b4040f;
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(227, 6, 19, 0.5);
}

.btn-outline-primary {
  color: #E30613;
  background-color: transparent;
  background-image: none;
  border-color: #E30613;
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: #E30613;
  border-color: #E30613;
}

.btn-success {
  color: #fff;
  background-color: #28a745;
  border-color: #28a745;
}

.btn-success:hover {
  color: #fff;
  background-color: #218838;
  border-color: #1e7e34;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.2rem;
}

/* Alerts */
.alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

/* Paginatie */
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: 0.25rem;
}

.page-item.active .page-link {
  z-index: 1;
  color: #fff;
  background-color: #E30613;
  border-color: #E30613;
}

.page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: #E30613;
  background-color: #fff;
  border: 1px solid #dee2e6;
}

.page-link:hover {
  z-index: 2;
  color: #E30613;
  text-decoration: none;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.badge-primary {
  color: #fff;
  background-color: #E30613;
}

/* Footer */
footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

/* Utilities */
.text-primary {
  color: #E30613;
}

.bg-primary {
  background-color: #E30613;
}

.border-primary {
  border-color: #E30613;
}

/* Responsive aanpassingen */
@media (max-width: 767.98px) {
  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1rem;
  }
  
  .takeuchi-logo {
    height: 40px;
  }
  
  .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
}

/* Print styling */
@media print {
  .sidebar, 
  .navbar,
  .btn,
  .no-print {
    display: none;
  }
  
  body {
    background-color: #fff;
  }
  
  .container-fluid,
  main {
    width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #dee2e6;
  }
  
  th, td {
    background-color: #fff;
  }
}