/* Genel Component Styles */
.attendance-container {
  padding: 10px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin: 25px auto;
  height: auto;
}
/* Responsive Design */
@media (max-width: 768px) {
  .attendance-container {
    padding: 12px;
  }
}
/* Genel Component Styles  Son*/
/* Grid Styles */

.admin-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  
  @media (max-width: 1200px) {
    gap: 20px;
  }
  
  @media (max-width: 768px) {
    gap: 16px;
    grid-template-columns: 1fr;
  }
}

/* Stats Overview */
.admin-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
  
  @media (max-width: 768px) {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
  }
}

.admin-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  
  &:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
  
  &.grid-4 {
    grid-column: span 4;
    
    @media (max-width: 768px) {
      grid-column: span 1;
    }
  }

  &.grid-6 {
    grid-column: span 6;
    
    @media (max-width: 768px) {
      grid-column: span 1;
    }
  }

  &.grid-8 {
    grid-column: span 8;
    
    @media (max-width: 768px) {
      grid-column: span 1;
    }
  }
  
  &.grid-12 {
    grid-column: span 12;
    
    @media (max-width: 768px) {
      grid-column: span 1;
    }
  }
  
  .card-header {
    width: 100%;
    height: 45px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 10px;
    background-color: #eaeaea;
    
    h3 {
      font-size: 18px;
      font-weight: 600;
      color: #1e293b;
      margin: 0;
    }
    
    .card-actions {
      display: flex;
      align-items: center;
      gap: 12px;
      
      .btn-icon {
        width: 32px;
        height: 32px;
        border: none;
        background: #f8fafc;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #64748b;
        cursor: pointer;
        transition: all 0.2s;
        
        &:hover {
          background: #e2e8f0;
          color: #475569;
        }
      }
      
      .badge {
        background: #f1f5f9;
        color: #475569;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 500;
      }
      
      .period-select {
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 6px 12px;
        font-size: 12px;
        background: white;
        color: #475569;
        cursor: pointer;
        
        &:focus {
          outline: none;
          border-color: #6366f1;
        }
      }
    }
    
    @media (max-width: 768px) {
      padding: 20px 20px 0 20px;
      margin-bottom: 20px;
      
      h3 {
        font-size: 16px;
      }
    }
  }
  
  .card-body {
    padding: 0 24px 24px 24px;
    
    @media (max-width: 768px) {
      padding: 0 20px 20px 20px;
    }
  }
}

/* Grid Styles Son */


/*Card Styles */

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: start;
  gap: 16px;
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.1) 50%);
    transform: rotate(45deg) translate(30px, -30px);
  }
  
  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  }
  
  &.mavi {
    border-left-color: #6366f1;
    
    .stat-icon {
      background: linear-gradient(135deg, #6366f1, #4f46e5);
    }
  }
  
  &.yesil {
    border-left-color: #10b981;
    
    .stat-icon {
      background: linear-gradient(135deg, #10b981, #059669);
    }
  }
  
  &.kırmızı {
    border-left-color: #fd0000;
    
    .stat-icon {
      background: linear-gradient(135deg, #fc5050, #ff0000);
    }
  }
  
  &.turuncu {
    border-left-color: #ff6600;
    
    .stat-icon {
      background: linear-gradient(135deg, #fe9916, #ff6600);
    }
  }
  
  .stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .stat-content {
    h3 {
      font-size: 32px;
      font-weight: 700;
      margin: 0 0 0 0;
      color: #1e293b;
      line-height: 1;
    }
    
    p {
      font-size: 14px;
      color: #64748b;
      margin: 0 0 12px 0;
      font-weight: 500;
    }
    
    .trend {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 12px;
      font-weight: 600;
      padding: 4px 8px;
      border-radius: 20px;
      
      &.up {
        background: rgba(16, 185, 129, 0.1);
        color: #059669;
      }
      
      &.down {
        background: rgba(239, 68, 68, 0.1);
        color: #dc2626;
      }
      
      &.stable {
        background: rgba(107, 114, 128, 0.1);
        color: #6b7280;
      }
      
      i {
        font-size: 10px;
      }
    }
  }
  
  @media (max-width: 768px) {
    padding: 20px;
    
    .stat-icon {
      width: 40px;
      height: 40px;
      font-size: 18px;
    }
    
    .stat-content h3 {
      font-size: 28px;
    }
  }
}
/* Card Styles Son */

/* Header Styles */ 
.header-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.header-text {
  text-align: center;
  margin: 25px 0 25px 0;
}

.modern-page-title {
  color: #2c3e50;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modern-page-description {
  color: #6c757d;
  margin: 8px 0 0 0;
  font-size: 16px;
  font-weight: 400;
}
/* Responsive Design */
@media (max-width: 768px) {
  .modern-page-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .modern-page-header {
    padding: 16px;
  }
}
