/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@800&family=DM+Sans:wght@400;500;700&display=swap');

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color variables as specified in README */
  --primary: #6d45e3;
  --background: #f0eee7;
  --secondary: #ffa803;
  --text-dark: #333333;
  --text-light: #ffffff;
  --gray-light: #e5e5e5;
  --gray-medium: #cccccc;
  --gray-dark: #999999;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Login page */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-form {
  background-color: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.login-form h1 {
  color: var(--primary);
  margin-bottom: 20px;
  text-align: center;
}

/* Form elements */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray-medium);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 69, 227, 0.2);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.btn-primary {
  background-color: var(--primary) !important;
  color: white !important;
}

.btn-primary:hover {
  background-color: #5a39c7 !important;
}

.btn-secondary {
  background-color: var(--secondary) !important;
  color: white !important;
}

.btn-secondary:hover {
  background-color: #e69700 !important;
}

.btn-danger {
  background-color: var(--primary) !important;
  color: white !important;
}

.btn-danger:hover {
  background-color: #5a39c7 !important;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Links in buttons should not be underlined */
a.btn {
  text-decoration: none !important;
}

/* Dashboard */
.dashboard {
  padding: 40px 0;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.dashboard-tabs {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--gray-medium);
}

.dashboard-tab {
  padding: 12px 24px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  font-weight: 500;
}

.dashboard-tab.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

/* Tables */
.table-container {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th, td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
}

th {
  font-weight: 500;
  background-color: #f9f9f9;
}

tr:hover {
  background-color: #f9f9f9;
}

/* Stile per le righe con ore residue esaurite */
tr.esaurito td:first-child {
  border-left: 6px solid var(--secondary);
}

/* Status dropdown */
.status-dropdown {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--gray-medium);
  font-family: 'DM Sans', sans-serif;
}

.status-da-fatturare {
  color: var(--warning);
}

.status-fatturato {
  color: var(--primary);
}

.status-pagato {
  color: var(--success);
}

/* Detail page */
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
  color: var(--gray-dark);
  font-size: 16px;
  margin-bottom: 8px;
}

.stat-card p {
  font-size: 24px;
  font-weight: 500;
  color: var(--primary);
}

/* Forms in cards */
.card {
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.card h2 {
  margin-bottom: 20px;
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dashboard-header h1 {
    margin-bottom: 20px;
  }
  
  .detail-stats {
    grid-template-columns: 1fr;
  }
} 