/* Project Management Specific Styles */

.projects-layout {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    height: calc(100vh - 120px);
}

.project-list-panel {
    flex: 0 0 350px;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
}

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

.panel-header h2 {
    margin: 0;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-item {
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-item:hover {
    background: #4a4a4a;
    transform: translateX(5px);
}

.project-item.active {
    background: #4a4a4a;
    border-color: #3498db;
}

.project-item h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #ecf0f1;
}

.project-item p {
    margin: 0;
    font-size: 0.9em;
    color: #bdc3c7;
}

.project-details-panel {
    flex: 1;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
}

.project-details {
    height: 100%;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #4a4a4a;
}

.project-header h2 {
    margin: 0;
    color: #ecf0f1;
}

.project-info {
    background: #3a3a3a;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.project-info h3 {
    margin: 0 0 10px 0;
    color: #3498db;
}

.project-info p {
    margin: 5px 0;
    color: #bdc3c7;
}

/* Node Types Section */
.node-types-section {
    margin-top: 30px;
}

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

.node-types-header h3 {
    margin: 0;
    color: #ecf0f1;
}

.node-types-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.node-type-item {
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.node-type-preview {
    flex: 0 0 60px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.9em;
}

.node-type-info {
    flex: 1;
}

.node-type-info h4 {
    margin: 0 0 5px 0;
    color: #ecf0f1;
}

.node-type-info p {
    margin: 0;
    font-size: 0.9em;
    color: #95a5a6;
}

.node-type-actions {
    display: flex;
    gap: 10px;
}

.node-type-actions button {
    padding: 5px 10px;
    font-size: 0.9em;
}

/* System Node Types */
.system-node-types {
    margin-bottom: 30px;
}

.system-node-types h4 {
    margin: 0 0 10px 0;
    color: #95a5a6;
    font-size: 0.9em;
    text-transform: uppercase;
}

/* Color Picker Group */
.color-picker-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-picker-group input[type="color"] {
    width: 50px;
    height: 38px;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
}

.color-picker-group input[type="text"] {
    flex: 1;
    font-family: monospace;
}

/* Shape previews */
.shape-preview {
    width: 40px;
    height: 30px;
    margin: 0 auto;
}

.shape-diamond {
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-bottom-color: currentColor;
    position: relative;
    top: -20px;
}

.shape-diamond:after {
    content: '';
    position: absolute;
    left: -20px;
    top: 20px;
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-top-color: currentColor;
}

.shape-hexagon {
    width: 40px;
    height: 22px;
    background: currentColor;
    position: relative;
}

.shape-hexagon:before,
.shape-hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
}

.shape-hexagon:before {
    bottom: 100%;
    border-bottom: 11px solid currentColor;
}

.shape-hexagon:after {
    top: 100%;
    border-top: 11px solid currentColor;
}

.shape-octagon {
    width: 40px;
    height: 30px;
    background: currentColor;
    position: relative;
}

.shape-octagon:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border-bottom: 9px solid #2a2a2a;
    border-left: 9px solid #2a2a2a;
    border-right: 9px solid transparent;
    border-top: 9px solid transparent;
}

.shape-octagon:after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    border-bottom: 9px solid transparent;
    border-left: 9px solid transparent;
    border-right: 9px solid #2a2a2a;
    border-top: 9px solid #2a2a2a;
}

/* Project Card Layout */
.project-card {
    background: #3a3a3a;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #4a4a4a;
}

.project-description {
    margin: 20px 0;
}

.project-description p {
    color: #bdc3c7;
    font-size: 1.1em;
    line-height: 1.5;
    margin: 0;
}

.project-stats {
    display: flex;
    gap: 30px;
    margin: 25px 0;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 6px;
    border: 1px solid #4a4a4a;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2.2em;
    font-weight: 700;
    color: #3498db;
    line-height: 1;
}

.stat-label {
    font-size: 0.9em;
    color: #95a5a6;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.project-notes {
    margin-top: 25px;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 6px;
    border: 1px solid #4a4a4a;
}

.project-notes h4 {
    margin: 0 0 10px 0;
    color: #3498db;
    font-size: 1em;
}

.project-notes p {
    margin: 0;
    color: #bdc3c7;
    line-height: 1.4;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.empty-state p {
    margin: 0;
    font-size: 1.1em;
}

/* Dialog enhancements */
.dialog-wide {
    max-width: 700px;
}

/* Checkbox styling */
.checkbox-group {
    margin: 10px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 8px;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    accent-color: #3498db;
}

.checkbox-text {
    font-weight: 500;
    color: #e0e0e0;
}

.help-text {
    font-size: 0.9em;
    color: #95a5a6;
    line-height: 1.4;
    margin-left: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .projects-layout {
        flex-direction: column;
        height: auto;
    }
    
    .project-list-panel {
        flex: none;
        height: 300px;
    }
    
    .project-details-panel {
        min-height: 400px;
    }
}