/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding-top: 70px;
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: center;
}

.app-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 70px - 100px);
}

/* Page header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.125rem;
    color: #64748b;
}

/* Card */
.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* SMART History */
.smart-history {
    background-color: #f0f4f8;
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3b82f6;
}

.smart-history p {
    font-size: 0.925rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

.smart-history strong {
    color: #1e293b;
    font-weight: 600;
}

.smart-history em {
    font-style: italic;
    color: #334155;
}

/* SMART Principles */
.smart-principles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.smart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.smart-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    flex: 0 0 30%;
}

.smart-letter {
    width: 3rem;
    height: 3rem;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.smart-left h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.smart-left p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.smart-right {
    flex: 1;
    padding-left: 1.5rem;
    border-left: 2px solid #e5e7eb;
}

.smart-right h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.smart-right p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Triple Constraint */
.constraints-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.constraint-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    min-height: 140px;
}

.constraint-left {
    flex: 0 0 40%;
}

.constraint-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.constraint-icon {
    font-size: 1.75rem;
    color: #3b82f6;
}

.constraint-left h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.constraint-left p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.constraint-right {
    flex: 1;
    padding-left: 1rem;
    border-left: 2px solid #e5e7eb;
}

.constraint-right h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.constraint-right p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Phases Container */
.phases-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Phase Card */
.phase-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.phase-card.active {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.phase-header {
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.phase-header:hover {
    background-color: #f9fafb;
}

.phase-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phase-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
}

.bg-blue { background-color: #3b82f6; }
.bg-purple { background-color: #a855f7; }
.bg-green { background-color: #22c55e; }
.bg-orange { background-color: #f97316; }
.bg-red { background-color: #ef4444; }

.phase-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.phase-info p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.phase-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phase-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #d1d5db;
}

.chevron {
    color: #9ca3af;
    transition: transform 0.3s ease;
}

/* Phase Tools */
.phase-tools {
    padding: 0 1rem 1rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-tag {
    font-size: 0.75rem;
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Phase Details */
.phase-details {
    display: none;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem;
    background-color: #f9fafb;
    animation: fadeIn 0.3s ease-out;
}

.phase-details.active {
    display: block;
}

.details-section {
    margin-bottom: 1.5rem;
}

.details-section:last-child {
    margin-bottom: 0;
}

.details-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
}

.details-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.details-section li {
    font-size: 0.875rem;
    color: #4b5563;
}

.details-section li strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #334155;
}

.activity-detail {
    margin-left: 1.25rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
    font-style: italic;
}

/* Tool tags with tooltips */
.tool-tooltip {
    position: relative;
    display: inline-block;
}

.tool-tag {
    font-size: 0.75rem;
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: help;
}

.tool-tag:hover {
    background-color: #e5e7eb;
}

/* Metrics */
.metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.metric-tooltip {
    position: relative;
    display: inline-block;
}

.metric-tag {
    font-size: 0.75rem;
    background-color: #dcfce7;
    color: #15803d;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    cursor: help;
}

/* Tooltip */
.tooltip {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 0.5rem;
    background-color: #1e293b;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 50;
    min-width: 350px;
    max-width: 450px;
    white-space: normal;
    text-align: left;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    border-color: #1e293b transparent transparent transparent;
}

.tooltip.show {
    opacity: 1;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
    font-size: 0.875rem;
    border-top: 1px solid #e5e7eb;
}

.app-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.app-footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .app-header h1 {
        font-size: 1.2rem;
    }
    
    body {
        padding-top: 60px;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .container {
        padding: 1.5rem 1rem;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .smart-item {
        gap: 1rem;
    }
    
    .phase-info {
        gap: 0.75rem;
    }
    
    .phase-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
}
