{% extends 'info/base.html' %}

{% block title %}Admin Dashboard{% endblock %}

{% block css %}
<style>
  .feature-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
  }
  
  .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  }
  
  .feature-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 48px;
    margin: 0 auto;
    border-radius: 12px;
    margin-bottom: 20px;
  }
  
  .feature-button {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 16px;
  }
  
  .feature-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    text-decoration: none;
    color: white;
  }
</style>
{% endblock %}

{% block content %}
<!-- Page Header -->
<div class="mb-8">
  <h1 class="text-4xl font-bold text-gray-900 mb-2">
    <i class="fas fa-tachometer-alt text-blue-500 mr-3"></i>Welcome Admin
  </h1>
  <p class="text-gray-600">Manage teachers, students, and system settings from here</p>
</div>

<!-- Features Grid -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">

  <!-- Add Teacher Card -->
  <div class="feature-card p-8 text-center">
    <div class="feature-icon">
      <i class="fas fa-user-tie"></i>
    </div>
    <h3 class="text-2xl font-bold text-gray-900 mb-3">Add Teacher</h3>
    <p class="text-gray-600 mb-6">
      Enter the details of new faculty to add a new teacher to the database. Make sure to correctly input all values for proper system functionality.
    </p>
    <a href="{% url 'add_teacher' %}" class="feature-button">
      <i class="fas fa-plus mr-2"></i>Add Teacher
    </a>
  </div>

  <!-- Add Student Card -->
  <div class="feature-card p-8 text-center">
    <div class="feature-icon" style="background: linear-gradient(135deg, #10b981 0%, #059669 100%);">
      <i class="fas fa-user-graduate"></i>
    </div>
    <h3 class="text-2xl font-bold text-gray-900 mb-3">Add Student</h3>
    <p class="text-gray-600 mb-6">
      Enter the details of a student to enroll a new student. Fill the details carefully as they are important for academics and records.
    </p>
    <a href="{% url 'add_student' %}" class="feature-button" style="background: linear-gradient(135deg, #10b981 0%, #059669 100%);">
      <i class="fas fa-plus mr-2"></i>Add Student
    </a>
  </div>

</div>

{% endblock %}
