/* meeting-notes.css - Specifični stilovi za Meeting Notes modul */

/* Filter Section */
.filter-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.search-bar {
    margin-bottom: 15px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 13px;
}

.action-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}

/* Notes Grid */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.note-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.note-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.note-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    flex: 1;
}

.note-card-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
}

.note-card-summary {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 10px;
}

.note-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.note-card-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #64748b;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary { background: #3b82f6; color: white; }
.badge-danger { background: #ef4444; color: white; }
.badge-warning { background: #f59e0b; color: white; }
.badge-success { background: #10b981; color: white; }
.badge-secondary { background: #64748b; color: white; }

/* Tag Styles */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tag button {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.tag button:hover {
    color: #ef4444;
}

/* Form Container */
.form-container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
}

/* Tags Container */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 38px;
    padding: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* Participants List */
.participant-item {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.participant-item input {
    flex: 1;
}

/* Action Item */
.action-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

/* Detail Container */
.detail-container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.detail-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.detail-header {
    margin-bottom: 30px;
}

.detail-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 15px 0;
}

.detail-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #64748b;
}

.tags-display {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 15px 0;
}

.participants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.participant-badge {
    background: #f1f5f9;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
}

.participant-badge .role {
    color: #64748b;
    font-size: 12px;
    margin-left: 8px;
}

.summary-box,
.content-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    line-height: 1.6;
    color: #475569;
}

.actions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-card {
    background: #f8fafc;
    border-left: 4px solid #cbd5e1;
    border-radius: 6px;
    padding: 15px;
}

.action-card.overdue { border-left-color: #ef4444; background: #fef2f2; }
.action-card.completed { border-left-color: #10b981; background: #f0fdf4; }

.action-header {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.action-description {
    font-size: 14px;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.action-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #64748b;
}

.action-meta .overdue {
    color: #ef4444;
    font-weight: 600;
}

.action-notes {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}

.detail-footer {
    display: flex;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #64748b;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card.stat-danger { border-left: 4px solid #ef4444; }
.stat-card.stat-warning { border-left: 4px solid #f59e0b; }
.stat-card.stat-success { border-left: 4px solid #10b981; }

.stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.actions-table {
    width: 100%;
    border-collapse: collapse;
}

.actions-table thead {
    background: #f8fafc;
}

.actions-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
}

.actions-table td {
    padding: 12px 16px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
}

.actions-table tr.row-overdue {
    background: #fef2f2;
}

.actions-table .link {
    color: #3b82f6;
    text-decoration: none;
}

.actions-table .link:hover {
    text-decoration: underline;
}

.text-danger {
    color: #ef4444 !important;
    font-weight: 600;
}

/* Status & Priority Badges */
.status-badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-in-progress { background: #dbeafe; color: #1e40af; }
.badge-completed { background: #d1fae5; color: #065f46; }
.badge-overdue { background: #fee2e2; color: #991b1b; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; }

.priority-badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

.priority-low { background: #e0e7ff; color: #3730a3; }
.priority-medium { background: #dbeafe; color: #1e40af; }
.priority-high { background: #fed7aa; color: #92400e; }
.priority-critical { background: #fecaca; color: #991b1b; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #1e293b;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Loading & No Results */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 16px;
}

.no-data {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.page-info {
    font-size: 14px;
    color: #64748b;
}

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

    .filters {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .table-container {
        overflow-x: auto;
    }

    .actions-table {
        min-width: 800px;
    }
}
