/* Öğrenci Notları Listeleme - Kompakt Tasarım CSS */

.martcode-notes-container {
    padding: 15px;
    background-color: #f8f9fa;
}

/* Student Block */
.martcode-notes-student-block {
    background: #ffffff;
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.martcode-notes-student-block:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Student Header */
.martcode-notes-student-header {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.martcode-notes-student-info {
    flex: 1;
    min-width: 0;
}

.martcode-notes-student-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.martcode-notes-student-name i {
    font-size: 14px;
}

.martcode-notes-student-number {
    font-size: 13px;
    opacity: 0.9;
    font-weight: normal;
}

.martcode-notes-student-meta {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.4;
}

.martcode-notes-student-meta i {
    margin-right: 4px;
    width: 12px;
    text-align: center;
}

.martcode-notes-student-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Status Badges */
.martcode-notes-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.martcode-notes-status i {
    margin-right: 4px;
}

.martcode-notes-status-success {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.martcode-notes-status-danger {
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

.martcode-notes-status-warning {
    background: rgba(255, 193, 7, 0.9);
    color: #212529;
}

.martcode-notes-status-info {
    background: rgba(23, 162, 184, 0.9);
    color: white;
}

.martcode-notes-status-default {
    background: rgba(108, 117, 125, 0.9);
    color: white;
}

.martcode-notes-count-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Notes Content */
.martcode-notes-content {
    padding: 0;
}

.martcode-notes-table {
    margin: 0;
    border: none;
    font-size: 13px;
}

.martcode-notes-table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    padding: 10px 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.martcode-notes-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: top;
    line-height: 1.5;
}

.martcode-notes-table tbody tr:hover {
    background-color: #f8f9fa;
}

.martcode-notes-table tbody tr:last-child td {
    border-bottom: none;
}

/* Note Content */
.martcode-notes-note-content {
    line-height: 1.5;
}

.martcode-notes-edit-link {
    color: inherit;
    text-decoration: none;
    display: block;
    padding: 2px 0;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.martcode-notes-edit-link:hover {
    color: #007bff;
    text-decoration: none;
    background-color: rgba(0, 123, 255, 0.05);
    padding: 2px 6px;
    margin: -2px -6px;
}

.martcode-notes-reminder {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 6px;
    border-left: 3px solid #ffc107;
}

.martcode-notes-reminder i {
    margin-right: 4px;
}

.martcode-notes-type-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    white-space: nowrap;
}

/* Empty State */
.martcode-notes-empty-state {
    padding: 25px 20px;
    text-align: center;
    color: #6c757d;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.martcode-notes-empty-state i {
    font-size: 24px;
    color: #dee2e6;
    margin-bottom: 8px;
    display: block;
}

.martcode-notes-add-btn {
    margin-top: 10px;
    font-size: 12px;
    padding: 6px 12px;
}

/* No Data Alert */
.martcode-notes-no-data {
    text-align: center;
    padding: 30px;
    margin-top: 20px;
    border-radius: 8px;
}

.martcode-notes-no-data i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .martcode-notes-container {
        padding: 10px;
    }

    .martcode-notes-student-header {
        padding: 10px 15px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .martcode-notes-student-name {
        font-size: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .martcode-notes-student-status {
        justify-content: flex-start;
    }

    .martcode-notes-table {
        font-size: 12px;
    }

    .martcode-notes-table thead th {
        padding: 8px 10px;
        font-size: 11px;
    }

    .martcode-notes-table tbody td {
        padding: 8px 10px;
    }

    .martcode-notes-student-meta {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .martcode-notes-student-header {
        padding: 8px 12px;
    }

    .martcode-notes-student-name {
        font-size: 13px;
    }

    .martcode-notes-table thead th,
    .martcode-notes-table tbody td {
        padding: 6px 8px;
    }

    .martcode-notes-empty-state {
        padding: 20px 15px;
    }

    .martcode-notes-no-data {
        padding: 25px 15px;
    }
}

/* Table Responsive Wrapper */
.table-responsive {
    border: none;
    box-shadow: none;
}

/* Print Styles */
@media print {
    .martcode-notes-container {
        background: white;
        padding: 0;
    }

    .martcode-notes-student-block {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 15px;
    }

    .martcode-notes-student-header {
        background: #f8f9fa !important;
        color: #333 !important;
        -webkit-print-color-adjust: exact;
    }

    .martcode-notes-add-btn {
        display: none;
    }

    .martcode-notes-edit-link {
        color: #333 !important;
        text-decoration: none !important;
    }
}

/* Loading State */
.martcode-notes-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.martcode-notes-loading i {
    font-size: 32px;
    animation: fa-spin 1s infinite linear;
    margin-bottom: 10px;
    display: block;
}

/* Focus States for Accessibility */
.martcode-notes-edit-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.martcode-notes-add-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Notes Modals CSS */
.mc-notes-container {
    padding: 20px;
}

.mc-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8e8e8;
}

.mc-notes-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.mc-notes-add-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.mc-notes-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: white;
    text-decoration: none;
}

.mc-notes-add-btn i {
    margin-right: 8px;
}

.mc-notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.mc-note-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.mc-note-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    border-color: #667eea;
}

.mc-note-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mc-note-card:hover::before {
    opacity: 1;
}

.mc-note-reminder {
    background: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
    display: inline-block;
    border: 1px solid #ffeaa7;
}

.mc-note-reminder i {
    margin-right: 6px;
    animation: mc-bell-ring 2s infinite;
}

@keyframes mc-bell-ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
}

.mc-note-content {
    margin-bottom: 15px;
    min-height: 60px;
}

.mc-note-text {
    color: #34495e;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.mc-note-editable {
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-block;
    text-decoration: none;
    color: #34495e;
}

.mc-note-editable:hover {
    color: #667eea;
    text-decoration: none;
}

.mc-note-type-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    margin-top: 8px;
}

.mc-note-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mc-note-author {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #7f8c8d;
}

.mc-note-author i {
    margin-right: 6px;
    font-size: 14px;
}

.mc-note-date {
    font-size: 12px;
    color: #95a5a6;
    display: flex;
    align-items: center;
}

.mc-note-date i {
    margin-right: 5px;
}

.mc-notes-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.mc-notes-empty-icon {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 15px;
}

.mc-notes-empty-text {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mc-notes-grid {
        grid-template-columns: 1fr;
    }

    .mc-notes-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mc-notes-add-btn {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }
}

/* Edit icon on hover for editable notes */
.mc-note-editable-wrapper {
    position: relative;
    display: inline-block;
}

.mc-note-edit-icon {
    position: absolute;
    top: -5px;
    right: -25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #667eea;
    font-size: 14px;
}

.mc-note-card:hover .mc-note-edit-icon {
    opacity: 1;
}
