/* Custom styles for VK Post Parser */

/* Main styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* Card refinements */
.card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation adjustments */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.nav-link {
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--bs-primary);
}

/* Button improvements */
.btn {
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    border-width: 1px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Table improvements */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Badge refinements */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* User list in result details */
.user-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

.user-list .list-group-item {
    border-left: none;
    border-right: none;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.user-list .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.user-list .list-group-item:first-child {
    border-top: none;
}

.user-list .list-group-item:last-child {
    border-bottom: none;
}

/* Form refinements */
.form-control, .form-select {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--bs-light);
}

.form-control:focus, .form-select:focus {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    color: var(--bs-light);
}

/* File dropzone */
.dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    min-height: 150px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dropzone:hover {
    border-color: var(--bs-primary);
}

.dropzone.drag-active {
    border-color: var(--bs-success);
    background-color: rgba(25, 135, 84, 0.1);
}

/* Custom animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading-pulse {
    animation: pulse 1.5s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-5 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* VK specific styling */
.vk-link {
    color: #4a76a8 !important;
}

.vk-link:hover {
    text-decoration: underline;
}

.vk-icon {
    color: #4a76a8;
}

/* Dark theme adjustments */
[data-bs-theme=dark] {
    --bs-body-bg: #1a1a1a;
    --bs-dark: #212529;
    --bs-border-color: rgba(255, 255, 255, 0.1);
}

/* Custom status indicators */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-dot.success {
    background-color: var(--bs-success);
}

.status-dot.warning {
    background-color: var(--bs-warning);
}

.status-dot.danger {
    background-color: var(--bs-danger);
}

/* Code block styling */
pre {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 0.25rem;
    padding: 1rem;
    overflow-x: auto;
}

/* Custom tooltip */
.custom-tooltip {
    position: relative;
    display: inline-block;
}

.custom-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
