* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
  }
  
  nav {
    background-color: #2c3e50;
    width: 200px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px 0;
    z-index: 1000;
  }
  
  nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
  }
  
  nav li {
    margin: 10px 0;
  }
  
  nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    display: block;
    transition: all 0.3s ease;
  }
  
  nav a:hover {
    color: #3498db;
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .container {
    margin-left: 220px;
    padding: 40px;
  }
  
  main h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
    font-size: 2em;
    font-weight: 600;
  }
  
  .view-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 25px;
    margin-bottom: 30px;
    background-color: #3498db;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .view-buttons a {
    background-color: #2980b9;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .view-buttons a:hover {
    background-color: #3498db;
    transform: translateY(-2px);
  }
  
  .calendar-selector {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  
  .calendar-selector label {
    font-weight: 600;
    color: #2c3e50;
  }
  
  .calendar-selector select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 2px solid #ddd;
    background: white;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.3s ease;
  }
  
  .calendar-selector select:hover,
  .calendar-selector select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
  }

.month-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #3498db;
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    color: white;
  }
  
  .month-nav form {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
  }
  
  .today-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
  }
  
  .today-btn:hover {
    background-color: #229954;
    transform: translateY(-2px);
  }
  
  .month-nav span {
    font-size: 1.6em;
    font-weight: 600;
    color: white;
    text-align: center;
    white-space: nowrap;
  }
  
  .month-nav button {
    background-color: #2980b9;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  .month-nav button:hover {
    background-color: #217dbb;
    transform: translateY(-2px);
  }
  
  
  /* GADA SKATS */
  .year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
  }

  .month-card {
    display: block;
    background-color: white;
    color: #2c3e50;
    padding: 30px 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid #ddd;
  }
  
  .month-card:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
  }
  
  /* MĒNEŠA SKATS */
  .calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .calendar-header {
    text-align: center;
    font-weight: 700;
    color: white;
    padding: 18px 0;
    background-color: #3498db;
    border-radius: 10px;
  }
  
  /* Day Cells */
  .calendar > div:not(.calendar-header) {
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 14px;
    padding: 14px;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
  }

  .calendar > div:not(.calendar-header):not(.empty):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }
  
  .calendar > div > a:first-child {
    color: #2c3e50;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    text-decoration: none;
  }

  .calendar > div > a:first-child:hover {
    color: #3498db;
  }
  
  /* Task Strips */
  .task-strips {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
  }

  .task-strips a {
    display: block;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
  }

  .task-strips a:hover {
    transform: scaleY(1.3);
  }
  
  /* DIENAS SKATS */
  .day-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    min-height: 400px;
  }

  .no-tasks {
    text-align: center;
    color: #999;
    font-size: 18px;
    padding: 60px 20px;
    font-style: italic;
  }
  
  .task-item {
    border-left: 5px solid #3498db;
    border-radius: 14px;
    margin-bottom: 25px;
    padding: 20px 25px;
    background-color: #fdfdfd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid #f0f0f0;
  }
  
  .task-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  }
  
  .task-item strong {
    font-size: 18px;
    color: #2c3e50;
    display: block;
    margin-bottom: 8px;
  }
  
  .task-item em {
    color: #666;
    font-style: normal;
    display: block;
    margin-top: 8px;
  }

  .task-item .edit-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 600;
  }

  .task-item .edit-btn:hover {
    background-color: #2980b9;
    transform: translateX(3px);
  }
  
  .form-container,
  .edit-container {
    max-width: 600px;
    margin: 60px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .form-container h2,
  .edit-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  label {
    font-weight: 600;
    color: #2c3e50;
  }
  
  input[type="text"],
  input[type="datetime-local"],
  textarea,
  select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: white;
  }
  
  textarea {
    resize: vertical;
    min-height: 100px;
  }
  
  input[type="color"] {
    width: 70px;
    height: 40px;
    border: none;
    cursor: pointer;
  }
  
  button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
  }
  
  .cancel-link {
    text-align: center;
    display: block;
    margin-top: 10px;
    color: #3498db;
    text-decoration: none;
  }
  
  .cancel-link:hover {
    text-decoration: underline;
  }
  
  .error {
    color: #e74c3c;
    text-align: center;
    font-weight: 600;
  }

  .calendar {
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
  }

  .calendar.fade-out {
    opacity: 0;
  }
  
  @media screen and (max-width: 992px) {
    nav { width: 60px; }
    nav a span { display: none; }
    .container { margin-left: 80px; padding: 20px; }
  }
  
  @media screen and (max-width: 768px) {
    .calendar > div:not(.calendar-header) {
      min-height: 100px;
      padding: 8px;
    }
    .calendar > div > a:first-child {
      font-size: 14px;
    }
    .month-nav span {
      font-size: 1.3em;
      padding: 0 10px;
    }
    .month-nav button {
      width: 40px;
      height: 40px;
      font-size: 20px;
    }
  }
  
  @media screen and (max-width: 576px) {
    nav {
      width: 100%;
      height: auto;
      position: relative;
    }
    nav ul {
      flex-direction: row;
      justify-content: center;
      flex-wrap: wrap;
    }
    .container {
      margin-left: 0;
      padding: 20px;
    }
    .month-nav span {
      font-size: 1.1em;
      padding: 0 5px;
    }
    .month-nav button {
      width: 35px;
      height: 35px;
      font-size: 18px;
    }
    .month-nav form {
      gap: 10px;
      max-width: 100%;
    }
  }