/* Basic reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Card styling */
.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.card-title {
    background-color: #f3f4f6;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

/* Button styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-info {
    background-color: #10b981;
    color: white;
}

.btn-info:hover {
    background-color: #059669;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #e5e7eb;
}

th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* Interactive cells */
.interactive-cell {
    cursor: pointer;
    transition: background-color 0.2s;
}

.interactive-cell:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.interactive-cell.active {
    background-color: rgba(59, 130, 246, 0.2);
}

.interactive-cell.error {
    background-color: rgba(239, 68, 68, 0.2);
}

/* Feedback styling */
.feedback {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
}

.feedback-info {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
}

.feedback-error {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
}

.feedback-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
}

/* Cycle counter */
.cycle-remaining {
    display: inline-block;
    min-width: 1.5rem;
    text-align: center;
    font-weight: bold;
}

/* Execution cycle progress indicators */
.cycles-high {
    color: #ef4444;  /* Red for many cycles remaining */
}

.cycles-medium {
    color: #f59e0b;  /* Amber for medium cycles remaining */
}

.cycles-low {
    color: #10b981;  /* Green for few cycles remaining */
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

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

.btn-warning {
    background-color: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
}