/* Custom styles for FileBox */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

/* Buttons */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
}

/* Text editor */
#editor {
    resize: vertical;
    background-color: #fafafa;
}

#editor:focus {
    background-color: #fff;
    box-shadow: none;
}

/* File list icons */
.bi-file-text {
    color: var(--primary-color);
}

.bi-file-earmark {
    color: var(--secondary-color);
}

/* Upload area */
.modal-body .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Empty state */
.bi-folder2-open {
    opacity: 0.3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }

    .btn-group-sm > .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }

    #editor {
        min-height: 300px;
    }
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Footer */
footer {
    border-top: 1px solid #e9ecef;
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Form focus states */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* File size badge */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
}

/* Success animation */
.btn-success {
    transition: all 0.3s ease;
}

/* Line numbers for editor (future enhancement) */
.editor-container {
    position: relative;
}

.line-numbers {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 0.5rem;
    text-align: right;
    font-family: monospace;
    font-size: 14px;
    color: #6c757d;
    overflow: hidden;
}

/* Drag and drop area (for future use) */
.drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.drop-zone.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1050;
}

/* Progress bar for uploads */
.progress {
    height: 0.5rem;
    border-radius: 0.25rem;
}