/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #dc8cdb 0%, #f6bf9f 100%);
    padding: 4rem 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
  }

  .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
  }

  .hero-content {
    position: relative;
    z-index: 2;
  }

  .hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
  }

  .hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
  }

  .hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
  }

  .stat-item {
    text-align: center;
  }

  .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
  }

  /* Timeline Section */
  .timeline-section {
    padding: 4rem 0;
    background: #f8f9fa;
  }

  .timeline-header {
    text-align: center;
    margin-bottom: 3rem;
  }

  .timeline-header h2 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }

  .timeline-header p {
    color: #666;
    font-size: 1.1rem;
  }

  .timeline-container {
    position: relative;
  }

  /* Remove the vertical center line */
  .timeline-container::before {
    display: none !important;
  }

  .timeline-week {
    margin-bottom: 2rem;
    position: relative;
  }

  .week-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
  }

  .week-number {
    background: linear-gradient(135deg, #dc8cdb 0%, #f6bf9f 100%);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-right: 0.75rem;
    box-shadow: 0 4px 16px rgba(220, 140, 219, 0.3);
  }

  .week-info h3 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
  }

  .week-info p {
    color: #666;
    margin: 0;
    font-size: 0.85rem;
  }

  .pdf-cards {
    display: block;
    margin-top: 0.5rem;
  }

  /* PDF Card Styles */
  .pdf-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(220, 140, 219, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    margin-bottom: 1rem;
  }

  .pdf-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(220, 140, 219, 0.15);
    border-color: #f6bf9f33;
  }

  .pdf-card-header {
    background: linear-gradient(135deg, #f6bf9f 0%, #dc8cdb 100%);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .pdf-icon {
    font-size: 1.5rem;
    color: #fff;
  }

  .pdf-meta {
    flex: 1;
  }

  .pdf-subject {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
  }

  .pdf-date {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
  }

  .pdf-card-body {
    padding: 1rem;
  }

  .pdf-card-body h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .pdf-card-body p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }

  .pdf-stats {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #888;
    font-size: 0.8rem;
  }

  .stat i {
    color: #dc8cdb;
  }

  /* Subject tags */
  .subject-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
  }

  .subject-tag {
    background: linear-gradient(135deg, #dc8cdb 0%, #f6bf9f 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 8px rgba(220, 140, 219, 0.2);
    transition: all 0.3s ease;
  }

  .subject-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 140, 219, 0.3);
  }

  .pdf-card-actions {
    padding: 0 1rem 1rem;
    display: flex;
    gap: 0.5rem;
  }

  .action-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
  }

  .preview-btn {
    background: #dc8cdb;
    color: #fff;
  }

  .preview-btn:hover {
    background: #c77bc6;
    transform: translateY(-2px);
  }

  .download-btn {
    background: #28a745;
    color: #fff;
  }

  .download-btn:hover {
    background: #218838;
    transform: translateY(-2px);
  }

  /* Modal Styles - Tam Ekran */
  .modal-dialog {
    max-width: 98vw;
    width: 98vw;
    height: 95vh;
    margin: 1vh auto;
    max-height: none;
  }

  @media (min-width: 768px) {
    .modal-dialog {
      max-width: 97vw;
      width: 97vw;
      height: 92vh;
      margin: 2vh auto;
    }
  }

  .modal-content {
    border-radius: 18px;
    border: none;
    box-shadow: 0 8px 32px rgba(220, 140, 219, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .modal-header {
    background: linear-gradient(135deg, #dc8cdb 0%, #f6bf9f 100%);
    color: #fff;
    border-radius: 18px 18px 0 0;
    border: none;
    flex-shrink: 0;
    padding: 1rem 1.5rem;
  }

  .modal-header .close {
    color: #fff;
    opacity: 0.8;
  }

  .modal-header .close:hover {
    opacity: 1;
  }

  .modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
  }

  .pdf-viewer-container {
    position: relative;
    height: 100%;
    min-height: 400px;
  }

  .pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
  }

  .pdf-loading p {
    color: #666;
    margin: 0;
    font-size: 1rem;
  }

  .pdf-viewer {
    height: 100%;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #f6bf9f33;
  }

  .pdf-viewer iframe {
    border: none;
    border-radius: 6px;
    width: 100%;
    height: 100%;
  }

  .pdf-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 100%;
    padding: 2rem;
  }

  .pdf-error i {
    color: #dc3545;
    margin-bottom: 1rem;
  }

  .pdf-error h5 {
    color: #dc3545;
    margin-bottom: 1rem;
  }

  .pdf-error p {
    color: #666;
  }

  .modal-footer {
    flex-shrink: 0;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f6bf9f33;
    background: #f8f9fa;
    border-radius: 0 0 18px 18px;
  }

  .modal-footer .btn {
    margin: 0 0.25rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
  }

  /* Vanilla JavaScript Modal Support */
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .modal.show {
    display: block !important;
    opacity: 1;
  }

  .modal-open {
    overflow: hidden;
  }

  .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .modal-dialog {
      max-width: 100vw;
      width: 100vw;
      height: 100vh;
      margin: 0;
      border-radius: 0;
    }

    .modal-content {
      border-radius: 0;
      height: 100vh;
    }

    .modal-header {
      border-radius: 0;
      padding: 0.75rem 1rem;
    }

    .modal-footer {
      border-radius: 0;
      padding: 0.75rem 1rem;
    }

    .modal-footer .btn {
      font-size: 0.875rem;
      padding: 0.375rem 0.75rem;
      margin: 0 0.125rem;
    }

    .hero-content h1 {
      font-size: 2rem;
    }

    .hero-stats {
      flex-direction: column;
      gap: 1rem;
    }

    /* Remove the vertical center line on mobile as well */
    .timeline-container::before {
      display: none !important;
    }

    .week-header {
      justify-content: flex-start;
      margin-left: 1rem;
    }

    .pdf-cards {
      grid-template-columns: 1fr;
      gap: 1rem;
    }

    .pdf-card-actions {
      flex-direction: column;
    }
  }

  /* Animation */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .pdf-card {
    animation: fadeInUp 0.6s ease forwards;
  }

  .pdf-card:nth-child(1) {
    animation-delay: 0.1s;
  }

  .pdf-card:nth-child(2) {
    animation-delay: 0.2s;
  }

  .pdf-card:nth-child(3) {
    animation-delay: 0.3s;
  }

  /* Week Section Styles */
  .week-section {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(220, 140, 219, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
  }

  .week-section:hover {
    border-color: #f6bf9f33;
    box-shadow: 0 12px 40px rgba(220, 140, 219, 0.12);
  }

  .week-title {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f6bf9f33;
  }

  .week-title h3 {
    color: #dc8cdb;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  .week-title h3 i {
    margin-right: 0.5rem;
    color: #f6bf9f;
  }

  .week-title p {
    color: #666;
    margin: 0;
    font-size: 1rem;
  }

  /* Loading ve No Data States */
  .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
  }

  .spinner-border.text-primary {
    color: #dc8cdb !important;
  }

  #loadingState p,
  #noDataState p {
    color: #666;
    font-size: 1.1rem;
  }

  #noDataState h4 {
    color: #333;
    font-weight: 600;
  }

  /* Month Accordion Styles */
  .accordion .card {
    border: none;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(220, 140, 219, 0.08);
    overflow: hidden;
  }

  /* Collapse Animation */
  .collapse {
    transition: height 0.35s ease;
  }

  .collapse:not(.show) {
    display: none;
  }

  .collapse.show {
    display: block;
  }

  .collapsing {
    position: relative;
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
  }

  .accordion .card-header {
    background: linear-gradient(135deg, #dc8cdb 0%, #f6bf9f 100%);
    border: none;
    padding: 0;
  }

  .accordion .btn-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 1.2rem 1.5rem;
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .accordion .btn-link:hover {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
  }

  .accordion .btn-link:focus {
    box-shadow: none;
  }

  .accordion .btn-link:not(.collapsed)::after {
    content: '▼';
    float: right;
    transition: transform 0.3s ease;
  }

  .accordion .btn-link.collapsed::after {
    content: '▶';
    float: right;
    transition: transform 0.3s ease;
  }

  .month-week-count {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
  }

  .accordion .card-body {
    background: #fff;
    padding: 2rem 1.5rem;
  }

  /* Week Container Styles */
  .week-container {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(220, 140, 219, 0.06);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
  }

  .week-container:hover {
    border-color: #f6bf9f66;
    box-shadow: 0 8px 24px rgba(220, 140, 219, 0.12);
    transform: translateY(-2px);
  }

  .week-container .week-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f6bf9f33;
  }

  .week-container .week-number {
    background: linear-gradient(135deg, #dc8cdb 0%, #f6bf9f 100%);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    margin-right: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(220, 140, 219, 0.3);
  }

  .week-container .week-info h4 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
  }

  .week-container .week-date {
    color: #666;
    font-size: 0.85rem;
    margin: 0 0 0.25rem 0;
  }

  .week-container .global-week {
    color: #999;
    font-size: 0.75rem;
    margin: 0;
    font-style: italic;
  }

  .week-content {
    min-height: 120px;
  }

  .loading-week .spinner-border-sm {
    width: 1.5rem;
    height: 1.5rem;
  }

  .loading-week p {
    color: #666;
    margin: 0;
  }

  /* Week PDF Cards Container */
  .week-pdf-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .week-pdf-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid #f6bf9f33;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .week-pdf-card:hover {
    background: #f6bf9f11;
    border-color: #dc8cdb66;
  }

  .week-pdf-card h6 {
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
  }

  .week-pdf-card p {
    color: #666;
    font-size: 0.8rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
  }

  .week-pdf-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.7rem;
    color: #888;
  }

  .week-pdf-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .week-pdf-stats .stat i {
    color: #dc8cdb;
  }

  /* Week PDF Actions */
  .week-pdf-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
  }

  .week-pdf-actions .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    flex: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
  }

  .week-pdf-actions .btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }

  .week-pdf-actions .btn-outline-primary {
    border-color: #dc8cdb;
    color: #dc8cdb;
    background-color: rgba(220, 140, 219, 0.1);
    font-weight: 600;
  }

  .week-pdf-actions .btn-outline-primary:hover,
  .week-pdf-actions .btn-outline-primary:focus,
  .week-pdf-actions .btn-outline-primary:active {
    background-color: #dc8cdb;
    border-color: #dc8cdb;
    color: #fff;
  }

  .week-pdf-actions .btn-outline-success {
    border-color: #28a745;
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    font-weight: 600;
  }

  .week-pdf-actions .btn-outline-success:hover,
  .week-pdf-actions .btn-outline-success:focus,
  .week-pdf-actions .btn-outline-success:active {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .accordion .btn-link {
      font-size: 1rem;
      padding: 1rem;
    }

    .week-container {
      padding: 1rem;
    }

    .week-container .week-number {
      width: 32px;
      height: 32px;
      font-size: 0.9rem;
    }

    .week-container .week-info h4 {
      font-size: 0.9rem;
    }

    .week-pdf-actions .btn {
      font-size: 0.8rem;
      padding: 0.4rem 0.6rem;
      min-height: 32px;
      font-weight: 700;
      border-width: 2px;
    }

    .week-pdf-actions .btn-outline-primary {
      background-color: rgba(220, 140, 219, 0.2);
      color: #dc8cdb;
    }

    .week-pdf-actions .btn-outline-success {
      background-color: rgba(40, 167, 69, 0.2);
      color: #28a745;
    }

    /* Action butonları için mobile iyileştirmeleri */
    .action-btn {
      font-size: 0.9rem;
      padding: 0.5rem 1rem;
      min-height: 36px;
      font-weight: 700;
    }

    .pdf-card-actions {
      flex-direction: row;
      gap: 0.5rem;
    }
  }
   /* Notification Styles */
   .notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
  }

  .notification.show {
    transform: translateX(0);
  }

  .notification-success {
    border-left: 4px solid #28a745;
  }

  .notification-error {
    border-left: 4px solid #dc3545;
  }

  .notification-info {
    border-left: 4px solid #17a2b8;
  }

  .notification i:first-child {
    font-size: 1.2rem;
  }

  .notification-success i:first-child {
    color: #28a745;
  }

  .notification-error i:first-child {
    color: #dc3545;
  }

  .notification-info i:first-child {
    color: #17a2b8;
  }

  .notification span {
    flex: 1;
    color: #333;
    font-weight: 500;
  }

  .notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
  }

  .notification-close:hover {
    color: #666;
  }