/**
 * File: assets/css/style.css
 * Mobile-First Responsive Stylesheet for Islamic Tuition System
 */

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 10px;
}

/* ============================================
   CONTAINERS
   ============================================ */
.container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.landing-container {
    max-width: 500px;
    margin: 0 auto;
}

.dashboard-container {
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   HEADERS
   ============================================ */
.landing-header {
    background: white;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.landing-header h1 {
    font-size: 22px;
    color: #059669;
    margin-bottom: 10px;
    font-weight: 600;
}

.landing-header h2 {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 8px;
}

.landing-header p {
    color: #6b7280;
    font-size: 14px;
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-header h2 {
    font-size: 24px;
    color: #1f2937;
    margin-bottom: 8px;
}

.form-header p {
    color: #6b7280;
    font-size: 14px;
}

.dashboard-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.dashboard-header h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

.dashboard-header p {
    font-size: 14px;
    opacity: 0.9;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.hero-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 15px;
    opacity: 0.95;
}

/* ============================================
   CARDS & SECTIONS
   ============================================ */
.option-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.option-card .icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.option-card h3 {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 5px;
}

.option-card p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
}

.status-card {
    background: #f3f4f6;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.status-card h3 {
    font-size: 16px;
    color: #374151;
    margin-bottom: 10px;
}

.teacher-card {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    padding: 15px;
    border-radius: 8px;
}

.teacher-card h4 {
    color: #047857;
    margin-bottom: 10px;
    font-size: 18px;
}

.teacher-card p {
    margin: 5px 0;
    font-size: 14px;
    color: #374151;
}

.dashboard-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dashboard-section h3 {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.form-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    font-size: 18px;
    color: #374151;
    margin-bottom: 15px;
}

/* ============================================
   COURSES & FEATURES
   ============================================ */
.courses-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.courses-section h3 {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 15px;
    text-align: center;
}

.course-list {
    display: grid;
    gap: 10px;
}

.course-item {
    background: #f0fdf4;
    padding: 12px;
    border-radius: 8px;
    color: #047857;
    font-size: 14px;
}

.features-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.features-section h3 {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 15px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    text-align: center;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #059669;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6b7280;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.btn-outline {
    background: white;
    color: #059669;
    border: 2px solid #059669;
}

.btn-outline:hover {
    background: #f0fdf4;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-delete {
    background: #fee2e2;
    color: #dc2626;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-delete:hover {
    background: #fecaca;
}

.nav-btn {
    display: block;
    background: #10b981;
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
    transition: transform 0.2s;
}

.nav-btn:hover {
    transform: translateY(-2px);
}

.dashboard-nav {
    margin-bottom: 20px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert p {
    margin: 5px 0;
    font-size: 14px;
}

/* ============================================
   LISTS
   ============================================ */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.list-item-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
    font-size: 15px;
}

.list-item-subtitle {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.empty-state p {
    margin-bottom: 15px;
}

/* ============================================
   PROFILE INFO
   ============================================ */
.profile-info {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
}

.profile-info p {
    margin: 10px 0;
    font-size: 14px;
    color: #374151;
}

.profile-info strong {
    color: #1f2937;
}

/* ============================================
   TABLES
   ============================================ */
.table-container {
    overflow-x: auto;
    margin: 15px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: #f3f4f6;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    border-bottom: 2px solid #e5e7eb;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #4b5563;
}

table tr:hover {
    background: #f9fafb;
}

/* ============================================
   FOOTER
   ============================================ */
.landing-footer {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
    color: #6b7280;
    font-size: 14px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

/* ============================================
   LOGIN OPTIONS
   ============================================ */
.login-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 360px) {
    body {
        padding: 5px;
    }
    
    .container,
    .dashboard-container {
        padding: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}