.data-table td button {
    margin: 4px;
    display: inline-block;
    vertical-align: middle;
}

.status-text-active {
    color: #28a745;
    font-weight: 600;
}

.status-text-closed {
    color: #dc3545;
    font-weight: 600;
}

.card {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.clickable-row:hover {
    background-color: #e3f2fd !important;
}

.phase-team-section {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 2px solid #f0f0f0;
}

.phase-member-item {
    font-size: 13px;
    padding: 4px 0;
    color: #555;
    border-bottom: 1px dotted #eee;
}

.phase-member-item:last-child {
    border-bottom: none;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

/* App Container */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.app-header {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-header .header-main h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.app-header .header-main p {
    color: #666;
    font-size: 14px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

#user-display-name {
    font-weight: 500;
    color: #333;
}

/* Views */
.view {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.view-header h2 {
    font-size: 20px;
    font-weight: 600;
}

/* Buttons */
button {
    cursor: pointer;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table thead {
    background-color: #f8f9fa;
}

.data-table th {
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.data-table td {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

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

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

/* Project Info Card */
.project-info-card {
    background-color: #f8f9fa;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.info-row {
    margin-bottom: 8px;
}

.info-label {
    font-weight: 600;
    margin-right: 10px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #333;
}

.tab-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

/* Tab Content */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

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

.tab-header h3 {
    font-size: 18px;
    font-weight: 600;
}

/* Phase Cards */
.phase-card {
    border: 1px solid #dee2e6;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.phase-header h4 {
    font-size: 16px;
    font-weight: 600;
}

.phase-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.metric {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #dee2e6;
}

.metric-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.metric-value {
    font-size: 16px;
    font-weight: 600;
}

.phase-members {
    margin-top: 10px;
}

.phase-members h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.member-tag {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 4px 8px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 12px;
}

/* Financial Summary */
.financial-summary {
    max-width: 600px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

.summary-row.highlight {
    background-color: #f8f9fa;
    font-weight: 600;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
}

.summary-label {
    color: #666;
}

.summary-value {
    font-weight: 600;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    border: 1px solid #dee2e6;
}

.modal-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content label {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    gap: 5px;
}

.modal-content input,
.modal-content select {
    padding: 8px;
    border: 1px solid #dee2e6;
    font-size: 14px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Import Results */
.import-results {
    background-color: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
}

.import-results h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.import-results ul {
    margin-left: 20px;
}

.import-results .success {
    color: #28a745;
}

.import-results .error {
    color: #dc3545;
}

/* Utility Classes */
.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.positive {
    color: #28a745;
}

.negative {
    color: #dc3545;
}

.clickable {
    cursor: pointer;
}

.clickable:hover {
    text-decoration: underline;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-state p {
    margin-bottom: 10px;
}

/* Member Assignment */
.assign-member-dropdown {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #dee2e6;
}

/* Log details */
.log-details-container {
    max-height: 150px;
    overflow-y: auto;
    font-size: 12px;
    background: #f9f9f9;
    padding: 5px;
    border: 1px solid #eee;
}

.log-detail-item {
    padding: 2px 0;
    border-bottom: 1px dashed #eee;
}

.log-detail-item:last-child {
    border-bottom: none;
}

.log-author {
    font-weight: 600;
    color: #444;
}

.log-time {
    color: #007bff;
}

.log-expenses {
    color: #28a745;
    font-weight: 600;
}

.text-muted {
    color: #999;
}

.status-text-active {
    color: #28a745;
    font-weight: 600;
}

.status-text-closed {
    color: #dc3545;
    font-weight: 600;
}
