
/*
 * Custom CSS for School ERP System
 * Additional styles and overrides for the Tailwind CSS
 */

/* Login page styles */
.login-container {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .login-card {
    width: 100%;
    max-width: 400px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
  }
  
  .login-logo {
    display: block;
    margin: 0 auto 1.5rem;
    max-width: 150px;
    height: auto;
  }
  
  /* Dashboard styles */
  .dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .stats-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
  }
  
  .stats-card:hover {
    transform: translateY(-5px);
  }
  
  .stats-card .icon {
    position: absolute;
    right: 1rem;
    top: 1rem;
    opacity: 0.2;
    font-size: 3rem;
  }
  
  /* Form styles */
  .form-container {
    max-width: 900px;
    margin: 0 auto;
  }
  
  .required-field::after {
    content: " *";
    color: var(--error);
  }
  
  /* Custom file input styling */
  .custom-file-input {
    position: relative;
    display: inline-block;
    width: 100%;
  }
  
  .custom-file-input input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }
  
  .custom-file-input label {
    display: block;
    padding: 0.5rem 1rem;
    background-color: var(--neutral-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .custom-file-input:hover label {
    background-color: #e5e7eb;
  }
  
  .file-selected {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--primary);
  }
  
  /* Print styles for receipts */
  @media print {
    .no-print {
      display: none !important;
    }
    
    .print-only {
      display: block !important;
    }
    
    body {
      font-size: 12pt;
      line-height: 1.3;
      background: #fff !important;
      color: #000 !important;
    }
    
    .container {
      width: 100%;
      max-width: 100%;
      padding: 0;
      margin: 0;
    }
    
    .receipt-container {
      border: 1px solid #000;
      padding: 1cm;
      margin: 0;
    }
    
    .receipt-header {
      text-align: center;
      margin-bottom: 1cm;
    }
    
    .receipt-details table {
      width: 100%;
      border-collapse: collapse;
    }
    
    .receipt-details th,
    .receipt-details td {
      padding: 0.2cm;
      text-align: left;
      border-bottom: 1px solid #ddd;
    }
  }
  
  /* Mobile responsive enhancements */
  @media (max-width: 640px) {
    .dashboard-stats {
      grid-template-columns: 1fr;
    }
    
    .form-container {
      padding: 0 1rem;
    }
    
    .responsive-table {
      display: block;
      width: 100%;
      overflow-x: auto;
    }
    
    .mobile-menu-toggle {
      display: block !important;
    }
    
    .sidebar.active {
      left: 0;
    }
    
    .content-wrapper {
      padding-left: 0 !important;
    }
  }
  
  /* Animation classes for GSAP */
  .fade-in {
    opacity: 0;
  }
  
  .slide-up {
    opacity: 0;
    transform: translateY(20px);
  }
  
  .slide-in-left {
    opacity: 0;
    transform: translateX(-20px);
  }
  
  .slide-in-right {
    opacity: 0;
    transform: translateX(20px);
  }
  
  /* Lazy loading image placeholder */
  .lazy-image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 0%, #f8f8f8 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
  }
  
  @keyframes loading {
    0% {
      background-position: 200% 0;
    }
    100% {
      background-position: -200% 0;
    }
  }