/* Global styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex-grow: 1;
}

/* Card styles */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-header {
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.03);
}

/* Button styles */
.btn {
    border-radius: 4px;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

/* Form styles */
.form-control, .form-select {
    border-radius: 4px;
}

label {
    font-weight: 500;
}

/* Dashboard counters */
.stat-card {
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-card .stat-title {
    font-size: 1rem;
    color: #6c757d;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.2;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
}

/* Plan badges */
.plan-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-free {
    background-color: #6c757d;
    color: white;
}

.plan-pro {
    background-color: #ffc107;
    color: #212529;
}

/* Inspection status badges */
.status-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-draft {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.status-published {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

/* Table styles */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Question builder styles */
.question-card {
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.question-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.options-container {
    margin-top: 1rem;
}

.option-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.handle-icon {
    cursor: move;
    margin-right: 0.5rem;
    color: #6c757d;
}

/* Response viewer styles */
.response-item {
    margin-bottom: 1rem;
}

.response-item .timestamp {
    font-size: 0.8rem;
    color: #6c757d;
}

.response-data {
    margin-top: 0.5rem;
}

.response-data .question {
    font-weight: 600;
}

.response-data .answer {
    margin-bottom: 0.5rem;
}

/* Public form styles */
.public-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.public-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* Toast positioning and styling */
.toast-container {
    z-index: 1100;
}

/* Modal de Visualização */
.modal-fullscreen {
    padding: 0;
}

.modal-fullscreen .modal-content {
    height: 100vh;
    border-radius: 0;
    border: none;
}

.modal-fullscreen .modal-header {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-fullscreen .modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-fullscreen .modal-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

#previewModalBody {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

#previewModalBody .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#previewModalBody .form-control, 
#previewModalBody .form-select {
    margin-bottom: 0.5rem;
}

#previewModalBody .text-danger {
    margin-left: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
    }
    
    .card-header .btn-group {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    #previewModalBody {
        padding: 0.5rem;
    }
}
