/* Custom styles for Software Architecture Advisor */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
}

/* Copy protection styles - Prevents selection and copying of content */
/* This class is applied to elements that should not be copyable */
.no-copy {
    /* Prevent text selection across all major browsers */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Prevent image dragging, selection, and right-clicking */
/* This class is applied to diagram images to prevent saving/copying */
img.protected-image {
    /* Prevent text selection across all major browsers */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    /* Prevent image dragging across all major browsers */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    
    /* Prevents right-click context menu */
    pointer-events: none;
}

/* Style for code blocks that should be protected from copying */
/* Applied to UML, YAML, and Infrastructure as Code blocks */
pre.no-copy {
    position: relative;
    overflow: hidden;
}

/* Card styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Rating stars */
.rating-stars {
    font-size: 1.5rem;
    cursor: pointer;
}

.rating-stars .fa-star {
    color: #ccc;
}

.rating-stars .fa-star.active {
    color: #ffc107;
}

/* Architecture style cards */
.architecture-card {
    margin-bottom: 1.5rem;
}

.architecture-card .card-header {
    font-weight: bold;
}

/* Diagram container */
.diagram-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Quality attribute list */
.quality-attribute-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.quality-attribute-item:last-child {
    border-bottom: none;
}

/* Buttons */
.btn-generate {
    background-color: #28a745;
    color: white;
}

.btn-download {
    background-color: #007bff;
    color: white;
}

/* Progress indicator */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #ccc;
    z-index: -1;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: #ccc;
    color: white;
    font-weight: bold;
    margin-bottom: 10px;
}

.progress-step.active .progress-step-number {
    background-color: #007bff;
}

.progress-step.completed .progress-step-number {
    background-color: #28a745;
}