/* General Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
}

/* Logo Styles */
.navbar-brand img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.dashboard-hero-image {
    max-width: 300px !important;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Survey Creator Styles */
.survey-builder {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Drag and Drop Styles */
.question-types {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 100;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.question-types .card-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 101;
}

.question-types .card-body {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.question-types .list-group-item {
    cursor: grab;
    transition: all 0.2s ease;
}

.question-types .list-group-item:hover {
    background-color: #e9ecef;
}

.question-types .list-group-item.dragging {
    opacity: 0.5;
}

.question-list {
    min-height: 200px;
    padding: 10px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.question-list.drag-over {
    background-color: #e9ecef;
    border-color: #007bff;
}

.question-block {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.question-block .drag-handle {
    cursor: grab;
    color: #6c757d;
    padding: 5px;
}

/* Preview Styles */
.preview-card {
    position: sticky;
    top: 20px;
}

.preview-question {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.preview-question .form-label {
    font-weight: 500;
    margin-bottom: 10px;
}

.rating-preview {
    display: flex;
    gap: 10px;
    justify-content: start;
    align-items: center;
}

.empty-state {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background: #fff;
}

.question-block.dragging {
    opacity: 0.5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.question-block:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.question-actions {
    display: flex;
    gap: 10px;
}

.sortable-ghost {
    opacity: 0.5;
    background: #e9ecef;
}

/* Survey Preview Styles */
.survey-preview {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

/* Dashboard Styles */
.dashboard-card {
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.stats-card {
    border-left: 4px solid #007bff;
}

/* Analytics Styles */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 30px;
}

/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.auth-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Login and Register Forms */
.form-floating {
    position: relative;
}

.form-floating > .form-control {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: .65;
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-body {
    padding: 2rem;
}

.btn-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.alert {
    border-radius: 0.25rem;
}

.alert ul {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.text-decoration-none:hover {
    text-decoration: underline !important;
}

/* Custom styles for auth pages */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-weight: 600;
    color: #333;
}

.auth-header p {
    color: #6c757d;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.auth-divider span {
    background: #fff;
    padding: 0 1rem;
    color: #6c757d;
    position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
    .question-actions {
        flex-direction: column;
    }
    
    .chart-container {
        height: 200px;
    }

    .question-types {
        position: relative;
        top: 0;
        max-height: none;
    }

    .question-types .card-header {
        position: relative;
    }

    .question-types .card-body {
        max-height: none;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Custom Animations */
@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Profile Page */
.profile-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 8px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Profile Page Styles */
.profile-card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #495057;
    margin: 0 auto;
    transition: all 0.2s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    background: #dee2e6;
}

.profile-stats {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0 0 0.25rem 0.25rem;
}

.profile-stat-item {
    text-align: center;
    padding: 0.5rem;
}

.profile-stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 0.25rem;
}

.profile-stat-label {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Activity Feed */
.activity-feed {
    padding: 0;
    margin: 0;
    list-style: none;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.activity-item:hover {
    background-color: #f8f9fa;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.activity-icon i {
    font-size: 14px;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    margin-bottom: 0.25rem;
    color: #212529;
}

.activity-date {
    font-size: 0.875rem;
    color: #6c757d;
}

.activity-action {
    margin-left: 1rem;
    flex-shrink: 0;
}

.activity-action .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-card {
        margin-bottom: 1.5rem;
    }
    
    .activity-action {
        display: none;
    }
    
    .activity-item {
        padding: 0.75rem;
    }
    
    .activity-icon {
        width: 28px;
        height: 28px;
    }
}

/* Survey Templates */
.template-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Drag and Drop */
.draggable-area {
    min-height: 100px;
    border: 2px dashed #dee2e6;
    border-radius: 4px;
    margin: 10px 0;
    padding: 10px;
}

.draggable-area.drag-over {
    background: #e9ecef;
    border-color: #007bff;
}
