/* Analysis Page CSS - ASP.NET Style with Station List & Tree Structure + Project Management */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
    overflow-x: hidden;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb .separator {
    color: rgba(255,255,255,0.6);
}

.breadcrumb .current {
    color: white;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Analysis Workspace */
.analysis-workspace {
    flex: 1;
    display: grid;
    grid-template-columns: 350px 1fr 400px;
    gap: 0;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    height: calc(100vh - 80px);
}

/* Parameters Panel */
.parameters-panel {
    background: white;
    border-right: 2px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    padding: 1.5rem;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
}

.panel-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-header h3 i {
    color: #ff6b35;
}

.parameter-sections {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.param-section {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.param-section:last-child {
    border-bottom: none;
}

.param-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.param-section h4 i {
    color: #ff6b35;
    font-size: 0.9rem;
}

.panel-footer {
    padding: 1.5rem;
    border-top: 2px solid #f3f4f6;
    background: #fafafa;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Field validation styles */
.field-valid {
    border-color: #10b981 !important;
}

.field-invalid {
    border-color: #ef4444 !important;
}

.field-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.field-error::before {
    content: "⚠";
    font-weight: bold;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.custom-period {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 6px;
}

.station-details {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #ff6b35;
    margin-top: 1rem;
}

.station-details h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.station-details p {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

/* Map Panel */
.map-panel {
    display: flex;
    flex-direction: column;
    background: white;
    border-right: 2px solid #e5e7eb;
}

.map-controls {
    display: flex;
    gap: 0.5rem;
}

.map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#station-map {
    width: 100%;
    height: 100%;
}

.map-legend {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255,255,255,0.95);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-marker.selected {
    background: #dc2626;
}

.legend-marker.available {
    background: #2563eb;
}

.legend-marker.filtered {
    background: #9ca3af;
}

/* Results Panel */
.results-panel {
    display: flex;
    flex-direction: column;
    background: white;
}

.result-controls {
    display: flex;
    gap: 0.5rem;
}

.results-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.no-results i {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.no-results h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.no-results p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Status Bar */
.status-bar {
    background: #374151;
    color: white;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.loading-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.loading-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background: #ff6b35;
    color: white;
}

.btn-primary:hover {
    background: #e55a2b;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #5b6370;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-info {
    background: #3b82f6;
    color: white;
}

.btn-info:hover {
    background: #2563eb;
}

.btn-outline {
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.btn-outline:hover {
    background: #ff6b35;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.full-width {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .analysis-workspace {
        grid-template-columns: 320px 1fr 350px;
    }
}

@media (max-width: 1200px) {
    .analysis-workspace {
        grid-template-columns: 300px 1fr 320px;
    }

    .param-section {
        padding: 1rem;
    }
}

@media (max-width: 1024px) {
    .analysis-workspace {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
    }

    .parameters-panel,
    .map-panel,
    .results-panel {
        border-right: none;
        border-bottom: 2px solid #e5e7eb;
    }

    .map-container {
        height: 400px;
    }

    .parameters-panel {
        order: 1;
    }

    .map-panel {
        order: 2;
    }

    .results-panel {
        order: 3;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .custom-period {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .map-container {
        height: 300px;
    }

    .map-legend {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
    }

    .status-bar {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .status-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 1rem;
    }

    .param-section {
        padding: 1rem 0.75rem;
    }

    .panel-header,
    .panel-footer {
        padding: 1rem 0.75rem;
    }

    .results-content {
        padding: 1rem 0.75rem;
    }

    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    .loading-content {
        padding: 2rem 1rem;
    }
}

/* Custom Scrollbar */
.parameter-sections::-webkit-scrollbar,
.results-content::-webkit-scrollbar {
    width: 6px;
}

.parameter-sections::-webkit-scrollbar-track,
.results-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.parameter-sections::-webkit-scrollbar-thumb,
.results-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.parameter-sections::-webkit-scrollbar-thumb:hover,
.results-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Data Info Modal Styles */
.data-info-modal .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.data-info-modal .modal-content {
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.data-info-modal .modal-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-info-modal .modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.data-info-modal .close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.data-info-modal .close-modal:hover {
    background: rgba(255,255,255,0.2);
}

.data-info-modal .modal-body {
    padding: 2rem;
}

.data-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-section {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ff6b35;
}

.info-section h4 {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.info-section p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.info-section p strong {
    color: #374151;
}

.data-info-modal .modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

/* Station Actions Styles */
.station-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.station-actions .btn {
    flex: 1;
    min-width: 140px;
}

/* Station Panel - Replaces Map Panel */
.station-panel {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.station-container {
    flex: 1;
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
}

.station-list {
    flex: 1;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem;
}

.station-item {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.station-item:hover {
    border-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.station-item.selected {
    border-color: #ff6b35;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.station-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.station-code {
    font-weight: bold;
    color: #ff6b35;
    font-size: 1.1rem;
}

.station-state {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: auto;
}

.station-name {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 0.3rem;
}

.station-coords {
    font-size: 0.8rem;
    color: #6b7280;
}

.station-details {
    width: 300px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background: #f9fafb;
}

.details-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.details-header h4 {
    margin: 0;
    color: #374151;
}

.details-content {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.detail-item strong {
    color: #374151;
}

.station-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Tree Structure Styles for Dashboard */
.tree-view {
    padding: 1rem;
}

.tree-project {
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.project-node {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e5e7eb;
}

.project-node:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.toggle-icon {
    color: #6b7280;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.project-name {
    font-weight: 600;
    color: #374151;
    flex: 1;
}

.analysis-count {
    color: #6b7280;
    font-size: 0.9rem;
}

.project-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.project-node:hover .project-actions {
    opacity: 1;
}

.btn-icon {
    background: none;
    border: none;
    padding: 0.3rem;
    border-radius: 4px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #ff6b35;
}

.tree-children {
    background: white;
}

.tree-analysis {
    border-bottom: 1px solid #f3f4f6;
}

.tree-analysis:last-child {
    border-bottom: none;
}

.analysis-node {
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.analysis-node:hover {
    background: #f8fafc;
}

.tree-analysis.selected .analysis-node {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 3px solid #ff6b35;
}

.analysis-name {
    font-weight: 500;
    color: #374151;
    flex: 1;
}

.analysis-meta {
    color: #6b7280;
    font-size: 0.8rem;
}

.analysis-actions {
    display: flex;
    gap: 0.3rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.analysis-node:hover .analysis-actions {
    opacity: 1;
}

.tree-empty {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.tree-empty i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

.tree-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

/* State Filter Styles */
.state-filter {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.state-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* Status Colors */
.text-success { color: #059669 !important; }
.text-warning { color: #d97706 !important; }
.text-danger { color: #dc2626 !important; }
.text-info { color: #0891b2 !important; }

/* Project Management Styles */
.current-project-section {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.current-project-info {
    text-align: center;
}

.current-project-info h4 {
    color: #374151;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.current-project-info p {
    color: #6b7280;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.current-project-info small {
    color: #9ca3af;
    display: block;
    margin-top: 0.25rem;
}

/* Project Modal Styles */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

.modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: #f9fafb;
}

/* Project List Styles */
.projects-list,
.analyses-list {
    max-height: 400px;
    overflow-y: auto;
}

.project-item,
.analysis-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: white;
    transition: all 0.2s ease;
}

.project-item:hover,
.analysis-item:hover {
    border-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.project-info,
.analysis-info {
    padding: 1rem;
    flex: 1;
}

.project-item h4,
.analysis-item h4 {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 1.1rem;
}

.project-item p,
.analysis-item p {
    margin: 0 0 0.75rem 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.project-meta,
.analysis-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.project-meta span,
.analysis-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.project-actions,
.analysis-actions {
    padding: 1rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: flex-end;
}

.no-projects,
.no-analyses {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

/* Form Group Styles for Modals */
.modal-body .form-group {
    margin-bottom: 1.5rem;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.modal-body .form-group input,
.modal-body .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.modal-body .form-group input:focus,
.modal-body .form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-body .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Notification Styles (for project manager) */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1100;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.notification-success {
    border-left: 4px solid #059669;
}

.notification-error {
    border-left: 4px solid #dc2626;
}

.notification-info {
    border-left: 4px solid #0891b2;
}

.notification i {
    font-size: 1.2rem;
}

.notification-success i {
    color: #059669;
}

.notification-error i {
    color: #dc2626;
}

.notification-info i {
    color: #0891b2;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced header actions */
.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-actions .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .header-actions .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .project-meta,
    .analysis-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}