/**
 * Teacher Dashboard Styles
 * External CSS loaded in index.html
 * Location: /css/teacher-dashboard.css
 */

/* ========================================
   Modern Dashboard Variables
   ======================================== */
   :root {
    --primary-green: #2b4f22;
    --primary-yellow: #faea39;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --card-hover-shadow: 0 4px 16px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
  }
  
  /* ========================================
     Dashboard Layout
     ======================================== */
  .modern-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    background: #f8f9fa;
  }
  
  .dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  /* ========================================
     Card Components
     ======================================== */
  .dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    transition: var(--transition);
  }
  
  .dashboard-card:hover {
    box-shadow: var(--card-hover-shadow);
  }
  
  .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-yellow);
  }
  
  .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-green);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .card-title i {
    color: var(--primary-yellow);
  }
  
  /* ========================================
     Profile Section
     ======================================== */
  .profile-section {
    text-align: center;
  }
  
  .profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 4px solid var(--primary-yellow);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    object-fit: cover;
  }
  
  .profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
  }
  
  .profile-role {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
  }
  
  .stat-item {
    text-align: center;
  }
  
  .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
  }
  
  .stat-label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
  }
  
  /* ========================================
     Info Lists
     ======================================== */
  .info-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .info-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .info-list li:last-child {
    border-bottom: none;
  }
  
  .info-list i {
    width: 20px;
    text-align: center;
    color: var(--primary-green);
  }
  
  /* ========================================
     Quick Actions
     ======================================== */
  .quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .quick-action-btn {
    padding: 0.75rem;
    background: var(--primary-green);
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .quick-action-btn:hover {
    background: #1e3a18;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  
  /* ========================================
     Carousel
     ======================================== */
  .carousel-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
  }
  
  .carousel-container img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* ========================================
     Content Containers
     ======================================== */
  .messages-container,
  .calendar-container {
    position: relative;
  }
  
  .messages-container iframe,
  .calendar-container iframe {
    width: 100%;
    border: none;
    border-radius: 8px;
  }
  
  .messages-container {
    min-height: 400px;
  }
  
  .messages-container iframe {
    min-height: 400px;
  }
  
  .calendar-container {
    min-height: 600px;
  }
  
  .calendar-container iframe {
    min-height: 600px;
  }
  
  /* ========================================
     Loading States
     ======================================== */
  .loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #6c757d;
  }
  
  .loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-right: 1rem;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* ========================================
     Registration Badge
     ======================================== */
  .registration-badge {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
  }
  
  .registration-badge-content {
    background: #e8f5e9;
    padding: 1rem;
    border-radius: 8px;
  }
  
  .registration-label {
    font-size: 0.875rem;
    color: #2e7d32;
    margin-bottom: 0.5rem;
  }
  
  .registration-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1b5e20;
  }
  
  /* ========================================
     Responsive Design
     ======================================== */
  @media (max-width: 992px) {
    .dashboard-grid {
      grid-template-columns: 1fr;
    }
    
    .quick-actions {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 576px) {
    .modern-dashboard {
      padding: 1rem;
    }
    
    .dashboard-card {
      padding: 1rem;
    }
    
    .profile-stats {
      grid-template-columns: 1fr;
    }
    
    .profile-avatar {
      width: 100px;
      height: 100px;
    }
  }
  
  /* ========================================
     Hide Caspio Update Button
     ======================================== */
  .cbUpdateButton {
    display: none !important;
  }