/* assets/css/style.css */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 60px;
}

.container {
    max-width: 1200px;
}

/* Card Styles */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 12px 20px;
}

.card-body {
    padding: 20px;
}

/* Project Cards */
.project-card {
    transition: transform 0.2s ease-in-out;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card .card-footer {
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
}

/* Status Badge Styles */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-initializing {
    background-color: #e0f7fa;
    color: #006064;
}

.status-planning {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.status-generating {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.status-complete {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.status-failed {
    background-color: #ffebee;
    color: #b71c1c;
}

.status-deploying {
    background-color: #fff8e1;
    color: #ff6f00;
}

.status-deployed {
    background-color: #f3e5f5;
    color: #4a148c;
}

/* File Tree Styles */
.file-tree {
    margin: 0;
    padding: 0;
    list-style: none;
}

.file-tree li {
    padding: 5px 0;
}

.file-tree .folder {
    cursor: pointer;
    font-weight: 500;
}

.file-tree .folder:before {
    content: "📁 ";
}

.file-tree .folder.open:before {
    content: "📂 ";
}

.file-tree .file:before {
    content: "📄 ";
}

.file-tree ul {
    margin-left: 20px;
    padding-left: 0;
    list-style: none;
    display: none;
}

.file-tree .open > ul {
    display: block;
}

/* Code Preview Styles */
.code-preview {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    overflow: auto;
}

pre {
    margin: 0;
    padding: 0;
    background-color: transparent !important;
}

code {
    font-family: 'Consolas', 'Monaco', 'Andale Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Form Styles */
textarea {
    min-height: 150px;
}

.form-label {
    font-weight: 500;
}

/* Progress Indicators */
.progress {
    height: 10px;
    margin-bottom: 10px;
}

.progress-thin {
    height: 4px;
}

/* Agent Icons */
.agent-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 5px;
    vertical-align: middle;
    background-color: #e9ecef;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    font-weight: bold;
}

.agent-orchestrator {
    background-color: #bbdefb;
    color: #0d47a1;
}

.agent-planning {
    background-color: #c8e6c9;
    color: #1b5e20;
}

.agent-frontend {
    background-color: #ffecb3;
    color: #ff6f00;
}

.agent-backend {
    background-color: #d1c4e9;
    color: #4a148c;
}

.agent-database {
    background-color: #f8bbd0;
    color: #880e4f;
}

.agent-deployment {
    background-color: #b2dfdb;
    color: #00695c;
}

.agent-testing {
    background-color: #f5f5f5;
    color: #212121;
}

/* Tabs Styles */
.nav-tabs .nav-link {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.nav-tabs .nav-link.active {
    background-color: #f8f9fa;
    border-bottom-color: #f8f9fa;
}

.tab-content {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 20px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.pulsing {
    animation: pulse 1.5s infinite;
}

/* Tooltips */
.tooltip-inner {
    max-width: 300px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-title {
        font-size: 1.2rem;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}