/* Autism Foundation Management System - Global Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    /* background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
    min-height: 100vh;
  }
  
  /* Utility Classes */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  .flex {
    display: flex;
  }
  
  .flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .flex-column {
    flex-direction: column;
  }
  
  .grid {
    display: grid;
  }
  
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .hidden {
    display: none;
  }
  
  .text-center {
    text-align: center;
  }
  
  .text-left {
    text-align: left;
  }
  
  .text-right {
    text-align: right;
  }
  
  .mb-1 { margin-bottom: 0.5rem; }
  .mb-2 { margin-bottom: 1rem; }
  .mb-3 { margin-bottom: 1.5rem; }
  .mb-4 { margin-bottom: 2rem; }
  .mt-1 { margin-top: 0.5rem; }
  .mt-2 { margin-top: 1rem; }
  .mt-3 { margin-top: 1.5rem; }
  .mt-4 { margin-top: 2rem; }
  .p-1 { padding: 0.5rem; }
  .p-2 { padding: 1rem; }
  .p-3 { padding: 1.5rem; }
  .p-4 { padding: 2rem; }
  
  /* Login Page Styles */
  .login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  
  .login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
  }
  
  .login-header {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
  }
  
  .login-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
  }
  
  .login-subtitle {
    color: #718096;
    font-size: 16px;
  }
  
  .tab-navigation {
    display: flex;
    background: #f7fafc;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
  }
  
  .tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  
  .tab-button.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .tab-button:not(.active) {
    color: #718096;
  }
  
  .tab-button:hover:not(.active) {
    color: #4a5568;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-label {
    display: block;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
  }
  
  .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
  }
  
  .form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  }
  
  .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    /* Force desktop-style dropdown on mobile */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
  }

  /* Prevent mobile popup behavior for all select elements */
  select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
  }
  
  .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
  }
  
  .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
  }
  
  .btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
  }
  
  .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(72, 187, 120, 0.3);
  }
  
  .btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
  }
  
  .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 101, 101, 0.3);
  }
  
  .btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
  }
  
  .btn-secondary:hover {
    background: #cbd5e0;
  }
  
  .btn-full {
    width: 100%;
  }
  
  .demo-info {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 8px;
    padding: 12px;
    margin-top: 20px;
    font-size: 12px;
    color: #2b6cb0;
  }
  
  /* Dashboard Layout */
  .dashboard {
    display: flex;
    min-height: 100vh;
  }
  
  .sidebar {
    width: 280px;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
  }
  
  .sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
  }
  
  .sidebar-nav {
    padding: 20px 0;
  }
  
  .nav-item {
    display: block;
    padding: 15px 20px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
  }
  
  .nav-item:hover,
  .nav-item.active {
    background: #f7fafc;
    color: #667eea;
    border-left-color: #667eea;
  }
  
  .nav-item.disabled {
    color: #a0aec0;
    cursor: not-allowed;
  }
  
  .nav-item.disabled:hover {
    background: transparent;
    border-left-color: transparent;
  }
  
  .coming-soon {
    font-size: 10px;
    background: #e2e8f0;
    color: #718096;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
  }
  
  .main-content {
    flex: 1;
    margin-left: 280px;
    background: #f7fafc;
  }
  
  .header {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e2e8f0;
  }

  .header {
    position: sticky;
    top: 0;
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999; /* Ensure it stays above other content */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: adds shadow when sticky */
  }
  
  /* Mobile adjustments for sticky header */
  @media (max-width: 768px) {
    .header {
      position: sticky;
      top: 0;
      flex-direction: column;
      gap: 15px;
      align-items: flex-start;
      z-index: 999;
    }
    .header-actions {
      width: 100%;
      justify-content: space-between;
    }
  }
  
  .header-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
  }
  
  .header-subtitle {
    color: #718096;
    font-size: 16px;
  }
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .content {
    padding: 30px;
  }
  
  /* Cards */
  .card {
    background: white;
    
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
  }
  
  .card-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8f9fa;
  }
  
  .card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
  }
  
  .card-body {
    padding: 15px;
  }
  
  .profile-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
  }
  
  .profile-header {
    padding: 30px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
  }
  
  .profile-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
  }
  
  .profile-info p {
    opacity: 0.9;
    font-size: 16px;
  }
  
  .status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
  }
  
  .status-complete {
    background: rgba(72, 187, 120, 0.2);
    color: #ffffff;
    border: 1px solid rgba(72, 187, 120, 0.3);
  }
  
  .status-partial {
    background: rgba(237, 137, 54, 0.2);
    color: #744210;
    border: 1px solid rgba(237, 137, 54, 0.3);
  }
  
  .status-none {
    background: rgba(245, 101, 101, 0.2);
    color: #742a2a;
    border: 1px solid rgba(245, 101, 101, 0.3);
  }
  
  /* Tables */
  .table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }
  
  .table-header {
    padding: 20px 25px;
   
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .search-container {
    position: relative;
    max-width: 400px;
    flex: 1;
  }
  
  .search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
  }
  
  .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
  }
  
  .table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .table th,
  .table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #4a5568;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .table tr:hover {
    background: #f7fafc;
  }
  
  .table-actions {
    display: flex;
    gap: 8px;
  }
  
  .action-btn {
    padding: 6px 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .action-btn:hover {
    transform: scale(1.1);
  }
  
  .action-view {
    background: #ebf8ff;
    color: #2b6cb0;
  }
  
  .action-delete {
    background: #fed7d7;
    color: #c53030;
  }
  
  /* Status Indicators */
  .status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
  }
  
  .status-icon.complete {
    background: #48bb78;
  }
  
  .status-icon.partial {
    background: #ed8936;
  }
  
  .status-icon.none {
    background: #f56565;
  }
  
  /* Pagination */
  .pagination {
    display: flex;
    align-items: center;
    justify-content: between;
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e2e8f0;
  }
  
  .pagination-info {
    color: #718096;
    font-size: 14px;
  }
  
  .pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .pagination-btn {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
  }
  
  .pagination-btn:hover:not(:disabled) {
    background: #f7fafc;
    border-color: #cbd5e0;
  }
  
  .pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  /* Document Management */
  .document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .document-item {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
  }
  
  .document-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .document-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
  }
  
  .document-title {
    font-weight: 600;
    color: #2d3748;
  }
  
  .document-required {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
  }
  
  .document-required.required {
    background: #fed7d7;
    color: #c53030;
  }
  
  .document-required.optional {
    background: #bee3f8;
    color: #2b6cb0;
  }
  
  .document-upload {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .document-upload:hover {
    border-color: #a0aec0;
    background: #f7fafc;
  }
  
  .document-uploaded {
    background: #f0fff4;
    border: 2px solid #9ae6b4;
    padding: 15px;
    border-radius: 8px;
  }
  
  .document-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  
  .document-actions {
    display: flex;
    gap: 10px;
  }
  
  .document-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .btn-view {
    background: #ebf8ff;
    color: #2b6cb0;
  }
  
  .btn-download {
    background: #f0fff4;
    color: #22543d;
  }
  
  /* Forms */
  .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }

  a{
    text-decoration: none;
  }
  
  /* Sticky Parent Header */
.parent-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
}


  .form-section {
    background: white;
    border-radius: 15px;
    padding: 15px;
    margin: -12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }
  
  .form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
  }
  
  /* Alerts */
  .alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .alert-info {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    color: #2b6cb0;
  }
  
  .alert-success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #22543d;
  }
  
  .alert-warning {
    background: #fffbeb;
    border: 1px solid #f6e05e;
    color: #744210;
  }
  
  .alert-error {
    background: #fed7d7;
    border: 1px solid #feb2b2;
    color: #c53030;
  }
  
  /* Parent Dashboard Specific */
  .parent-dashboard {
    /* background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); */
    min-height: 100vh;
  }
  
  .parent-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
  }

  .view-btn{
    background: #c6f6d5;
    color: #22543d;
    padding: 5px 19px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
  }
  
  .parent-content {
    padding: 20px 0px;
  }

  .parent-grid-layout{
    grid-template-columns: 2fr 1fr; 
    gap: 30px;
  }

  @media (max-width: 768px) {
    .parent-content {
      
    }

    .parent-grid-layout{
      grid-template-columns: 1fr !important;
    }
  }
  
  .student-overview {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
  }
  
  /* DEO Dashboard Specific */
  .deo-dashboard {
   
    min-height: 100vh;
  }
  
  .deo-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .sidebar {
      
      transition: transform 0.3s ease;
    }
    
    .sidebar.open {
      transform: translateX(0);
    }
    
    .main-content {
      margin-left: 0;
    }
    
    .grid-2,
    .grid-3 {
      grid-template-columns: 1fr;
    }
    
    .form-grid {
      grid-template-columns: 1fr;
    }
    
    .document-grid {
      grid-template-columns: 1fr;
    }
    
    .header {
      padding: 15px 20px;
    }
    
    .content {
      padding: 10px;
    }
    
    .table-container {
      overflow-x: auto;
    }
    
    .pagination {
      flex-direction: column;
      gap: 15px;
      align-items: stretch;
    }
    
    .pagination-controls {
      justify-content: center;
    }
  }
  
  @media (max-width: 480px) {
    .login-card {
      padding: 30px 20px;
    }
    
    .tab-navigation {
      /* flex-direction: column; */
      gap: 5px;
    }
    
    .header-title {
      font-size: 20px;
      margin-bottom:1rem;
      text-align: center;
    }
    
    .profile-header {
      flex-direction: column;
      text-align: center;
    }
    
    .form-actions {
      /* flex-direction: column; */
      margin-bottom: 6rem;
    }
  }
  
  /* Loading States */
  .loading {
    opacity: 0.6;
    pointer-events: none;
  }
  
  .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Hover Effects */
  .hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }
  
  /* Focus States */
  .form-input:focus,
  .form-select:focus,
  .form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  }
  
  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }