/* Records Management Styles */

.records-header {
    background: linear-gradient(135deg, #8B6858 0%, #6B4226 100%);
    padding: 30px;
    border-radius: 12px;
    color: white;
    margin-bottom: 30px;
}

.records-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.records-header p {
    color: rgba(255, 255, 255, 0.9);
}

.records-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-bar {
    flex: 1;
    min-width: 300px;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #D4A574;
    background: white;
    color: #6B4226;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.filter-btn:hover {
    background: #FFF9F5;
}

.filter-btn.active {
    background: #8B6858;
    color: white;
    border-color: #8B6858;
}

.date-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-range input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.btn-export {
    padding: 10px 20px;
    background: linear-gradient(135deg, #6B4226, #8B6858);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 104, 88, 0.3);
}

.records-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.records-table th {
    background: #F8F9FA;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #4A3C33;
    border-bottom: 2px solid #E2E8F0;
}

.records-table td {
    padding: 15px;
    border-bottom: 1px solid #E2E8F0;
}

.records-table tbody tr:hover {
    background: #FFF9F5;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.completed {
    background: #D4F4DD;
    color: #1B7C3D;
}

.status-badge.no-show {
    background: #FFE4E1;
    color: #CC3333;
}

.status-badge.cancelled {
    background: #FFF3CD;
    color: #856404;
}

.btn-action {
    padding: 6px 12px;
    background: #8B6858;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.btn-action:hover {
    background: #6B4226;
}

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

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #E2E8F0;
}

.stat-label {
    font-size: 14px;
    color: #718096;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #8B6858;
}

.stat-change {
    font-size: 12px;
    color: #48BB78;
    margin-top: 4px;
}

.stat-change.negative {
    color: #F56565;
}

/* Vaccination Timeline */
.vaccination-timeline {
    position: relative;
    padding-left: 40px;
}

.vaccination-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #D4A574;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '❤';
    position: absolute;
    left: -33px;
    top: 0;
    width: 30px;
    height: 30px;
    background: white;
    border: 2px solid #D4A574;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.timeline-date {
    font-size: 12px;
    color: #718096;
    margin-bottom: 8px;
}

.timeline-content {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.timeline-content h4 {
    margin-bottom: 8px;
    color: #2D3748;
}

.timeline-content p {
    margin: 4px 0;
    color: #718096;
    font-size: 14px;
}

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

.document-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}

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

.document-icon {
    width: 50px;
    height: 50px;
    background: #FFF9F5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #8B6858;
}

.document-info {
    flex: 1;
}

.document-info h4 {
    margin-bottom: 4px;
    color: #2D3748;
}

.document-info p {
    color: #718096;
    font-size: 14px;
    margin-bottom: 4px;
}

.document-date {
    font-size: 12px;
    color: #A0AEC0;
}

.document-actions {
    display: flex;
    gap: 8px;
}

.document-actions button {
    width: 32px;
    height: 32px;
    border: 1px solid #E2E8F0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    transition: all 0.2s;
}

.document-actions button:hover {
    background: #8B6858;
    color: white;
    border-color: #8B6858;
}

/* Responsive */
@media (max-width: 768px) {
    .records-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar {
        min-width: unset;
    }

    .filter-group {
        flex-wrap: wrap;
    }

    .date-range {
        flex-wrap: wrap;
    }

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

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

    .records-table table {
        min-width: 600px;
    }
}