/* Main CSS for Rugby Norway Interactive Marketing Plan */

:root {
  --primary-color: #1D3557;
  --secondary-color: #E63946;
  --accent-color: #457B9D;
  --light-color: #A8DADC;
  --background-color: #F1FAEE;
  --text-color: #333;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}

nav ul li a:hover {
  color: var(--light-color);
  background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--light-color);
}

/* Main Content */
main {
  padding: 2rem 0;
  min-height: calc(100vh - 180px);
}

.plan-header {
  margin-bottom: 2rem;
  text-align: center;
}

.plan-header h1 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 2.2rem;
}

.plan-header p {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.card-title {
  font-size: 1.25rem;
  color: var(--primary-color);
  font-weight: 600;
}

.card-content {
  margin-bottom: 1rem;
}

.card-content h3 {
  color: var(--accent-color);
  margin: 1.2rem 0 0.5rem 0;
  font-size: 1.1rem;
}

.card-content h4 {
  color: var(--primary-color);
  margin: 1rem 0 0.5rem 0;
  font-size: 1rem;
}

.card-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.card-content p {
  margin-bottom: 1rem;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
}

/* Progress Indicators */
.progress-container {
  width: 100%;
  background-color: #f1f1f1;
  border-radius: 4px;
  margin: 10px 0;
  height: 12px;
}

.progress-bar {
  height: 12px;
  border-radius: 4px;
  background-color: var(--accent-color);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s;
  font-weight: 500;
}

.btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0);
}

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

.btn-primary:hover {
  background-color: #152a45;
}

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

.btn-secondary:hover {
  background-color: #c1303c;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: white;
}

.print-button {
  display: flex;
  align-items: center;
  margin: 1rem auto;
}

.print-button i {
  margin-right: 0.5rem;
}

/* Task Lists */
.task-list {
  list-style: none;
}

.task-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.task-item:last-child {
  border-bottom: none;
}

.task-checkbox {
  margin-right: 10px;
}

.task-label {
  flex-grow: 1;
}

.task-item.completed .task-label {
  text-decoration: line-through;
  color: #999;
}

.task-date {
  font-size: 0.8rem;
  color: #999;
}

/* Tabs */
.tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  white-space: nowrap;
  font-weight: 500;
}

.tab:hover {
  color: var(--accent-color);
}

.tab.active {
  border-bottom: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: 600;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tab-content.active {
  display: block;
}

/* Timeline specific styles */
.timeline-table-container {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.timeline-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.timeline-table th, .timeline-table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: center;
}

.timeline-table th {
  background-color: var(--primary-color);
  color: white;
}

.timeline-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.timeline-table tr:hover {
  background-color: #f1f1f1;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-weight: bold;
  font-size: 1.2rem;
}

.footer-links {
  display: flex;
}

.footer-links a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--light-color);
  text-decoration: underline;
}

.footer-copyright {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Authentication Forms */
.auth-container {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.1);
}

/* Print Styles */
@media print {
  header, footer, .no-print {
    display: none;
  }
  
  body {
    background-color: white;
  }
  
  .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  @page {
    size: A4;
    margin: 1.5cm;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  
  .header-container {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav ul li {
    margin: 0.5rem;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links {
    margin-top: 1rem;
    justify-content: center;
  }
  
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .tab {
    padding: 0.75rem 1rem;
  }
}

/* Accessibility improvements */
:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Link the timeline CSS file */
@import url('/css/timeline.css');
