/* dagseddel App Modern Styles - Streamlined, Professional, Beautiful */

:root {
  --primary-color: #17477B;
  --primary-dark: #0f3460;
  --primary-light: #2563a8;
  --accent-color: #4DB6AC;
  --accent-light: #72C277;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #E3F6FF;
  --bg-gradient: linear-gradient(135deg, #17477B 0%, #4DB6AC 100%);
  --border-color: #e2e8f0;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg-light);
}

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  background: var(--bg-gradient);
  color: #fff;
  box-shadow: var(--shadow-lg);
  padding: 1rem 0;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.brand h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: var(--transition-fast);
}

.brand a {
  text-decoration: none;
  color: inherit;
}

.brand a:hover h1 {
  transform: translateY(-1px);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-info span {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.user-info .logout-form {
  margin: 0;
}

.user-info button {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
}

.user-info button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.form-container, .card, .date-group, .empty-state {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.form-container:hover, .card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-gradient);
}

.login-form {
  max-width: 400px;
  margin: 3rem auto;
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.login-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-gradient);
}

.login-form h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.5rem;
}
.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: var(--bg-white);
  color: var(--text-primary);
  transition: var(--transition);
  box-sizing: border-box;
  font-family: inherit;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.form-field input:hover,
.form-field select:hover {
  border-color: var(--primary-light);
}

.form-field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-align: center;
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow);
  text-decoration: none;
  font-family: inherit;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}

button::before, .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

button:hover::before, .btn:hover::before {
  left: 100%;
}

button:hover, .btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

button:active, .btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow);
}

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

.btn.secondary {
  background: var(--bg-gray);
  color: var(--primary-color);
  border: 2px solid var(--border-color);
}

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

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

.btn.danger:hover {
  background: #dc2626;
}

.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--bg-gradient);
}

.page-header h2 {
  margin-bottom: 0;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.875rem;
  letter-spacing: -0.025em;
}

.actions-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.date-group {
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  background: var(--bg-white);
  margin-bottom: 2rem;
  padding: 0;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.date-group:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.date-header {
  background: linear-gradient(135deg, var(--bg-gray) 0%, #e2e8f0 100%);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.date-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bg-gradient);
}

.date-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.day-time-container {
  padding: 1.25rem 2rem;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.day-time-info {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
  align-items: center;
  flex-wrap: wrap;
}

.day-time-container .time-label {
  color: var(--text-primary);
  margin-right: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 2px dashed var(--border-color);
  margin: 2rem 0;
}

.empty-state p {
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.empty-state::before {
  content: '📋';
  display: block;
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  justify-content: flex-end;
}

.messages {
  margin-bottom: 2rem;
}

.message {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
  font-weight: 500;
  border-left: 4px solid;
}

.message.error {
  background: #fef2f2;
  color: #dc2626;
  border-left-color: #dc2626;
}

.message.success {
  background: #f0fdf4;
  color: #16a34a;
  border-left-color: #16a34a;
}

.message.info {
  background: #eff6ff;
  color: #2563eb;
  border-left-color: #2563eb;
}
.submissions-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.submissions-table th {
  text-align: left;
  padding: 1rem 2rem;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--bg-gray) 0%, #f1f5f9 100%);
}

.submissions-table td {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  transition: var(--transition-fast);
}

.submissions-table tr:hover td {
  background: var(--bg-light);
}

.submissions-table tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.875rem;
  border-radius: var(--border-radius-lg);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

.badge.common {
  background: linear-gradient(135deg, #4DB6AC 0%, #72C277 100%);
  color: white;
}

.badge.solo {
  background: linear-gradient(135deg, #17477B 0%, #2563a8 100%);
  color: white;
}
.align-right {
  text-align: right;
}

.summary-row {
  background: linear-gradient(135deg, var(--bg-gray) 0%, #f1f5f9 100%);
  font-weight: 600;
  border-top: 2px solid var(--border-color);
}

.summary-row td {
  padding: 1.5rem 2rem;
  font-size: 1.05rem;
}

.actions {
  text-align: right;
}

.actions .btn-group {
  justify-content: flex-end;
}

.delete-form {
  display: inline;
  margin: 0;
}

.inline-edit-time-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}

.inline-edit-time-form input[type="time"] {
  flex: 0 0 auto;
  width: auto;
  min-width: 120px;
}
.total-summary {
  background: var(--bg-gradient);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.total-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.total-summary h3 {
  margin: 0 2rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.total-time {
  text-align: center;
  position: relative;
  z-index: 1;
}

.time-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.total-summary .time-label {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-top: 0.5rem;
  font-weight: 500;
}

.time-separator {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-top: -0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.empty-state {
  text-align: center;
  padding: 3rem;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.empty-state p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}
.delete-form {
  display: inline;
}
.work-type-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  background: var(--bg-gray);
  border-radius: var(--border-radius-sm);
  padding: 0.25rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-btn {
  flex: 1;
  padding: 0.875rem 1rem;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: none;
  text-align: center;
  margin: 0;
  position: relative;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
  background: var(--bg-white);
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
  transform: none;
}

.tab-btn.active::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

.work-section {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.work-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.work-section h3 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
@media (max-width: 900px) {
  .container { padding: 0 1rem; }
  .form-field-group { grid-template-columns: 1fr; }
  header .container { flex-direction: column; gap: 1rem; }
  .user-info { width: 100%; justify-content: space-between; }
  table { font-size: 0.875rem; }
  th, td { padding: 0.75rem 0.5rem; }
  .form-container { padding: 1.5rem; }
  .date-header, .day-time-container { padding: 1rem; }
  .page-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .actions-row { width: 100%; justify-content: flex-start; }
  .day-time-info { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .work-type-tabs { flex-direction: column; }
  .tab-btn { width: 100%; }
}

/* Enhanced utility classes */
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Focus improvements for accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus, .btn:focus, input:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Enhanced disabled states */
input[readonly], input:disabled, select:disabled {
  background: var(--bg-gray);
  color: var(--text-muted);
  cursor: not-allowed;
  border-color: var(--border-color);
}

/* Modern scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Improved link styling */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Enhanced section styling */
.section-header {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

/* Modern card hover effects */
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Subtle animations */
.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Enhanced divider */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
  margin: 2rem 0;
}
