/* Reports Page Styles */
.reports-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.reports-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0;
}

.create-report-btn {
    padding: 12px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.create-report-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.reports-filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.reports-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reports-filter-group label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.reports-filter-group select,
.reports-filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
}

.reports-filter-group input[type="date"] {
    width: 180px;
}

.reports-filter-group select {
    min-width: 150px;
}

.reports-filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.btn-filter {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background: #2980b9;
}

.btn-filter:active {
    background: white;
    color: #3498db;
    transform: scale(0.97);
}

.btn-reset {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #e9ecef;
}

.btn-reset:active {
    background: #333;
    color: white;
    border-color: #333;
    transform: scale(0.97);
}

.reports-list {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.report-item:last-child {
    border-bottom: none;
}

.report-info {
    flex: 1;
}

.report-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.report-meta {
    font-size: 0.875rem;
    color: #666;
    display: flex;
    gap: 15px;
    align-items: center;
}

.report-type {
    display: inline-block;
    padding: 4px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.report-actions {
    display: flex;
    gap: 10px;
}

.btn-view,
.btn-download,
.btn-share,
.btn-delete {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-view {
    background: #e3f2fd;
    color: #1976d2;
}

.btn-view:hover {
    background: #bbdefb;
}

.btn-view:active {
    background: #1976d2;
    color: white;
    transform: scale(0.97);
}

.btn-download {
    background: #e8f5e9;
    color: #388e3c;
}

.btn-download:hover {
    background: #c8e6c9;
}

.btn-download:active {
    background: #388e3c;
    color: white;
    transform: scale(0.97);
}

.btn-share {
    background: #fff3e0;
    color: #ef6c00;
}

.btn-share:hover {
    background: #ffe0b2;
}

.btn-share:active {
    background: #ef6c00;
    color: white;
    transform: scale(0.97);
}

.btn-delete {
    background: #ffebee;
    color: #c62828;
}

.btn-delete:hover {
    background: #ffcdd2;
}

.btn-delete:active {
    background: #c62828;
    color: white;
    transform: scale(0.97);
}

.no-reports {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}

.no-reports i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
}

/* Report Editor Styles */
.report-editor {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.report-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.report-editor-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.report-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.form-section h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.report-templates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.template-card {
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.template-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.template-card.selected {
    border-color: #3498db;
    background: #e3f2fd;
}

.template-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 10px;
}

.template-card h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.template-card p {
    font-size: 0.875rem;
    color: #666;
}

.report-editor-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-save,
.btn-cancel,
.btn-preview {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save {
    background: #2ecc71;
    color: white;
}

.btn-save:hover {
    background: #27ae60;
}

.btn-preview {
    background: #3498db;
    color: white;
}

.btn-preview:hover {
    background: #2980b9;
}

.btn-cancel {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-cancel:hover {
    background: #e9ecef;
}

/* Report Preview Styles */
.report-preview {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.preview-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.preview-content {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #666;
}

.preview-content i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
}

.preview-content p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reports-header {
        flex-direction: column;
        gap: 15px;
    }

    .reports-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .reports-filter-group {
        width: 100%;
    }

    .reports-filter-group input[type="date"],
    .reports-filter-group select {
        width: 100%;
    }

    .reports-filter-actions {
        width: 100%;
        justify-content: space-between;
    }

    .report-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .report-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .report-actions {
        width: 100%;
        justify-content: space-between;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .report-templates {
        grid-template-columns: 1fr;
    }

    .report-editor-actions {
        flex-direction: column;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.report-item {
    animation: fadeIn 0.5s ease;
}

.template-card {
    animation: fadeIn 0.5s ease;
}

/* Print Styles */
@media print {

    .reports-header,
    .reports-filter-bar,
    .reports-list .report-actions,
    .report-editor-actions {
        display: none;
    }

    .reports-list,
    .report-preview {
        box-shadow: none;
        border: none;
    }

    .report-item {
        page-break-inside: avoid;
    }
}