/* ==========================================================================
   Schulportal & Unterrichtsverwaltung - Bootstrap 5 Theme Override
   Font Family: 'Inter', sans-serif
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Root Variables & Bootstrap Overrides */
:root {
  --bs-font-sans-serif: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-bg: #f8fafc;
  --bs-body-color: #23303d;
  --bs-primary: #37485a;
  --bs-primary-rgb: 16, 185, 129;
  --bs-border-color: #e2e8f0;
  --bs-border-radius: 0.5rem;
  --bs-border-radius-lg: 0.75rem;

  --text-primary: #37485a;
  
  /* Layout Specifics */
  --sidebar-width: 260px;
  --sidebar-bg: #23303d;
  --sidebar-text: #94a3b8;
}

.bg-50{
  opacity: 0.5 !important;
}
.bg-30{
  opacity: 0.3 !important;
}
.bg-10{
  opacity: 0.1 !important;
}
.text-primary {
  color: var(--text-primary) !important;
}

body {
  font-family: var(--bs-font-sans-serif);
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  -webkit-font-smoothing: antialiased;
  font-size: 0.8rem;
}

/* Überschriften */
h1{
  font-size: 2.0rem;
}

/* App Layout Setup */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    border-right: 1px solid #dee2e6;
    padding: 1rem 0;
    flex-shrink: 0;
}

.sidebar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 0 1rem 1rem;
    color: #fff;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.sidebar li {
    margin: 0.25rem 0;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #fff;
    text-decoration: none;    
}

.sidebar a.active {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
}

.content {
    flex: 1;
    padding: 1.25rem;
}

.card-content {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1rem;
}

.footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #dee2e6;
    background: #fff;
    color: #6c757d;
}

/* Main Content Area */
.main-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top Header Bar */
.top-header {
  height: 64px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--bs-border-color);
}

/* Bootstrap Cards Overrides */
.card {
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
}

.card-title {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--bs-body-color);
}

/* Bootstrap Form Controls Refinement */
.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.375rem;
}

.form-control, .form-select {
  font-family: var(--bs-font-sans-serif);
  font-size: 0.875rem;
  padding: 0.5rem 1.75rem;
  border-color: var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select {
  width: auto !important;
}

.form-select-sm {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 0.75rem;
}

.form-control:focus, .form-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* Bootstrap Buttons Refinement */
.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--bs-border-radius);
  transition: all 0.15s ease-in-out;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #059669 !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* Bootstrap Table Styling Override */
.table {
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--bs-border-color);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background-color: #f8fafc;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.table td {
  padding: 1rem;
  vertical-align: middle;
  color: var(--bs-body-color);
}

.table-hover tbody tr:hover {
  background-color: #f8fafc;
}

.table-sm {
  font-size: 0.875rem;
}
.table-sm th, .table-sm td {
  padding: 0.5rem;
}

/* Footer Styling */
.app-footer {
  font-size: 0.8125rem;
  color: #64748b;
  border-top: 1px solid var(--bs-border-color);
  background-color: #ffffff;
}

/* Postit */
/* .postit-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; } */
.postit { 
    position: relative; 
    min-height: 13rem; 
    padding: 1.5rem 1.25rem; 
    color: #554b22; 
    background: #ffeb789f; 
    border: 1px solid #e2d96b;
    box-shadow: 3px 7px 10px rgba(0,0,0,.2); 
    transform: rotate(-1deg); 
}
.postit:nth-child(2n) { background: #ffe66b98; transform: rotate(1.2deg); }
.postit:nth-child(3n) { background: #fff08c8e; transform: rotate(-.4deg); }
.postit:nth-child(4n) { background: #f9e0629d; transform: rotate(1.8deg); }
.postit::after { 
    content: ''; 
    position: absolute; 
    right: 0; 
    bottom: 0; 
    width: 3.5rem; 
    height: 3.5rem; 
    background: linear-gradient(135deg, transparent 50%, rgba(207, 165, 51, 0.205) 51%); 
}
.postit-tape { 
    position: absolute; 
    border: 1px solid rgba(0,0,0,.15);
    top: -.7rem; 
    left: 50%; 
    width: 4.5rem; 
    height: 1.25rem; 
    background: rgba(255,255,255,.45); 
    transform: translateX(-50%) rotate(-2deg); 
  }
.postit-actions { position: absolute; top: .6rem; right: .6rem; z-index: 1; }
.postit-actions a { color: #75662a; }
.postit h5 { padding-right: 3rem; }

/* Future Protocol */
.future-stunde td, .future-stunde th {
  font-family: var(--bs-font-sans-serif);
  font-size: 0.875rem;
  color: #9ca3af;
}
.future-switch{
  border-top: 3px solid var(--bs-primary);
}