/* Martcode Massive Attendance System */
.mma-attendance-manager {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    border: 1px solid #e2e8f0;
}

/* Header Section */
.mma-attendance-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.mma-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mma-date-section {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.mma-date-section i {
    font-size: 32px;
    opacity: 0.9;
}

.mma-date-details {
    line-height: 1.2;
}

.mma-date-primary {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.mma-date-secondary {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 400;
}

.mma-header-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
}

.mma-stats-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.mma-stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 80px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mma-stat-number {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 6px;
}

.mma-stat-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mma-stat-card.mma-present .mma-stat-number { color: #10b981; }
.mma-stat-card.mma-absent .mma-stat-number { color: #ef4444; }
.mma-stat-card.mma-late .mma-stat-number { color: #f59e0b; }
.mma-stat-card.mma-excused .mma-stat-number { color: #8b5cf6; }

/* Actions Toolbar */
.mma-actions-toolbar {
    background: white;
    padding: 20px 32px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.mma-action-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mma-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f1f5f9;
    color: #475569;
}

.mma-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mma-btn-present { background: #dcfce7; color: #16a34a; }
.mma-btn-present:hover { background: #bbf7d0; }

.mma-btn-absent { background: #fee2e2; color: #dc2626; }
.mma-btn-absent:hover { background: #fecaca; }

.mma-btn-late { background: #fef3c7; color: #d97706; }
.mma-btn-late:hover { background: #fde68a; }

.mma-view-controls {
    display: flex;
    gap: 8px;
}

.mma-view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mma-view-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

/* Students Container */
.mma-students-container {
    background: white;
    padding: 24px 32px 32px;
    max-height: 75vh;
    overflow-y: auto;
}

.mma-students-container.mma-compact {
    padding: 16px 24px 24px;
}

/* Student Row */
.mma-student-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    margin-bottom: 12px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.mma-student-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.mma-student-row.mma-marked {
    border-left: 6px solid;
    background: #ffffff;
}

.mma-student-row.mma-marked.mma-present { border-left-color: #10b981; }
.mma-student-row.mma-marked.mma-absent { border-left-color: #ef4444; }
.mma-student-row.mma-marked.mma-late { border-left-color: #f59e0b; }
.mma-student-row.mma-marked.mma-excused { border-left-color: #8b5cf6; }
.mma-student-row.mma-marked.mma-medical { border-left-color: #06b6d4; }
.mma-student-row.mma-marked.mma-not_notified { border-left-color: #6b7280; }

/* Student Profile */
.mma-student-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    min-width: 250px;
}

.mma-avatar-container {
    position: relative;
}

.mma-student-avatar, .mma-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
}

.mma-student-avatar {
    object-fit: cover;
}

.mma-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    font-weight: bold;
}

.mma-avatar-placeholder.mma-male {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.mma-avatar-placeholder.mma-female {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

.mma-status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
    background: #9ca3af;
    transition: all 0.3s ease;
}

.mma-status-indicator.mma-present { background: #10b981; }
.mma-status-indicator.mma-absent { background: #ef4444; }
.mma-status-indicator.mma-late { background: #f59e0b; }
.mma-status-indicator.mma-excused { background: #8b5cf6; }
.mma-status-indicator.mma-medical { background: #06b6d4; }
.mma-status-indicator.mma-not_notified { background: #6b7280; }

.mma-student-details {
    flex-grow: 1;
}

.mma-student-name {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.2;
}

.mma-student-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mma-student-number {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Attendance Options */
.mma-attendance-options {
    flex-shrink: 0;
}

.mma-option-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mma-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 11px;
    font-weight: 600;
    min-width: 70px;
    position: relative;
}

.mma-option-btn i {
    font-size: 16px;
    margin-bottom: 2px;
}

.mma-option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mma-option-btn.mma-active {
    border-width: 2px;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.mma-present-btn.mma-active { background: #10b981; color: white; border-color: #10b981; }
.mma-absent-btn.mma-active { background: #ef4444; color: white; border-color: #ef4444; }
.mma-late-btn.mma-active { background: #f59e0b; color: white; border-color: #f59e0b; }
.mma-excused-btn.mma-active { background: #8b5cf6; color: white; border-color: #8b5cf6; }
.mma-medical-btn.mma-active { background: #06b6d4; color: white; border-color: #06b6d4; }
.mma-not-notified-btn.mma-active { background: #6b7280; color: white; border-color: #6b7280; }

/* Compact View */
.mma-students-container.mma-compact .mma-student-row {
    padding: 12px 16px;
    margin-bottom: 8px;
}

.mma-students-container.mma-compact .mma-student-profile {
    min-width: 200px;
    gap: 12px;
}

.mma-students-container.mma-compact .mma-student-avatar,
.mma-students-container.mma-compact .mma-avatar-placeholder {
    width: 45px;
    height: 45px;
}

.mma-students-container.mma-compact .mma-avatar-placeholder i {
    font-size: 18px;
}

.mma-students-container.mma-compact .mma-student-name {
    font-size: 16px;
}

.mma-students-container.mma-compact .mma-option-btn {
    padding: 8px 6px;
    min-width: 55px;
    font-size: 10px;
}

.mma-students-container.mma-compact .mma-option-btn i {
    font-size: 14px;
}

/* Empty State */
.mma-empty-state {
    text-align: center;
    padding: 80px 40px;
    background: white;
    color: #6b7280;
}

.mma-empty-icon {
    font-size: 72px;
    color: #d1d5db;
    margin-bottom: 24px;
}

.mma-empty-state h3 {
    font-size: 24px;
    color: #374151;
    margin-bottom: 12px;
    font-weight: 700;
}

.mma-empty-state p {
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Progress Bar */
.mma-progress-container {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.mma-progress-bar {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.mma-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.mma-progress-text {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    font-weight: 600;
}

/* Notifications */
.mma-attendance-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    border-left: 4px solid #3b82f6;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
}

.mma-attendance-notification.mma-show {
    transform: translateX(0);
    opacity: 1;
}

.mma-attendance-notification.mma-notification-success {
    border-left-color: #10b981;
}

.mma-attendance-notification.mma-notification-warning {
    border-left-color: #f59e0b;
}

.mma-attendance-notification.mma-notification-error {
    border-left-color: #ef4444;
}

.mma-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.mma-notification-content i {
    font-size: 16px;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mma-attendance-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .mma-stats-grid {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mma-attendance-manager {
        margin: 10px 0;
        border-radius: 12px;
    }

    .mma-attendance-header {
        padding: 24px 20px;
    }

    .mma-header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }

    .mma-date-section {
        padding: 12px 16px;
    }

    .mma-header-title {
        font-size: 24px;
    }

    .mma-actions-toolbar {
        padding: 16px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .mma-action-group {
        justify-content: center;
    }

    .mma-students-container {
        padding: 16px 20px 24px;
    }

    .mma-student-row {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .mma-student-profile {
        width: 100%;
        justify-content: center;
        min-width: auto;
    }

    .mma-option-buttons {
        justify-content: center;
        width: 100%;
    }

    .mma-option-btn {
        flex: 1;
        min-width: auto;
        max-width: 80px;
    }
}

@media (max-width: 480px) {
    .mma-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .mma-stat-card {
        padding: 12px 16px;
        min-width: auto;
    }

    .mma-stat-number {
        font-size: 24px;
    }

    .mma-option-buttons {
        gap: 6px;
    }

    .mma-option-btn {
        padding: 10px 6px;
        font-size: 10px;
    }
}

/* Loading and Animation States */
.mma-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.mma-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: mma-spin 1s linear infinite;
    z-index: 1000;
}

@keyframes mma-spin {
    to { transform: rotate(360deg); }
}

/* Selection Animation */
.mma-option-btn.mma-selecting {
    animation: mma-pulse 0.3s ease-in-out;
}

@keyframes mma-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1.05); }
}

.mma-stat-card.mma-present .mma-stat-number { color: #10b981; }
.mma-stat-card.mma-absent .mma-stat-number { color: #ef4444; }
.mma-stat-card.mma-late .mma-stat-number { color: #f59e0b; }
.mma-stat-card.mma-excused .mma-stat-number { color: #8b5cf6; }
.mma-stat-card.mma-medical .mma-stat-number { color: #06b6d4; } /* Bu satır eksikti */