/* Professional DataTables Styling (Global) */
.dt-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
}

.dt-header .dataTables_filter {
    float: none !important;
    margin: 0 !important;
    position: relative;
}

.dataTables_wrapper .dataTables_filter label {
    display: block;
    position: relative;
    width: 320px;
}

/* Custom Search Icon */
.dataTables_wrapper .dataTables_filter label::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 1;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 0.75rem 1rem 0.75rem 2.5rem !important;
    border-radius: 0.75rem !important;
    border: 1px solid var(--border) !important;
    width: 100% !important;
    background-color: var(--bg-card) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 0.875rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    width: 380px !important;
}

.dataTable {
    border: none !important;
    margin-top: 1.5rem !important;
    width: 100% !important;
    border-spacing: 0;
}

.dataTable tbody tr {
    transition: background-color 0.2s ease;
    cursor: default;
}

.dataTable tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.03) !important;
}

.dataTable thead th {
    background-color: var(--bg-main);
    border-bottom: 2px solid var(--border) !important;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1rem !important;
}

.dataTable tbody td {
    padding: 1rem !important;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.5rem 0.75rem !important;
    margin-left: 0.25rem !important;
    border-radius: 0.375rem !important;
    border: 1px solid var(--border) !important;
    background: white !important;
    color: var(--text-main) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--bg-main) !important;
    color: var(--primary) !important;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_length {
    margin-top: 1.5rem;
    float: right;
}

.dataTables_wrapper .dataTables_length select {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border);
}

.dt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #f43f5e;
  --success: #10b981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
}

.layout-wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background-color: #1e293b;
  color: #fff;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.sidebar h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--primary);
}

.nav-link {
  color: #94a3b8;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link:hover, .nav-link.active {
  background-color: #334155;
  color: #fff;
}

.nav-divider {
  height: 1px;
  background-color: #334155;
  margin: 1rem 0;
}

.main-content {
  flex: 1;
  padding: 2rem 3rem;
  overflow-y: auto;
}

.card {
  background: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.875rem;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #475569;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  padding: 1rem;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  font-size: 0.75rem;
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-danger { background: #fee2e2; color: #991b1b; }

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.875rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Login specific styles */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
}

.login-container .card {
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.login-form .form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.875rem;
}

.login-form .form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-checkbox {
  width: auto;
  margin: 0;
}

.checkbox-label {
  margin: 0;
  font-weight: 400;
}

.form-actions {
  margin-top: 2rem;
}

.login-links {
  margin-top: 1.5rem;
  text-align: center;
}

.btn-link {
  display: block;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.btn-link:hover {
  text-decoration: underline;
}
