/* QuixShare Custom Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --text-muted: #6c757d;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--light-bg);
}

main {
    flex: 1;
    padding: 2rem 0;
}

/* Navigation Bar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    padding: 0;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

/* Cards */
.card {
    border-radius: 12px;
    border: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.main-card {
    background: white;
}

.card-header {
    font-weight: 500;
}

/* Metadata Section */
.metadata-section {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
}

.metadata-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.metadata-item i {
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.metadata-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.metadata-value {
    font-size: 0.9375rem;
    color: #212529;
}

/* Document Content */
.document-content-wrapper {
    background-color: #ffffff;
}

.content-header {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.document-content {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    border: 1px solid var(--border-color);
}

.document-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #212529;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn i {
    font-size: 1rem;
}

.btn-lg {
    padding: 12px 24px;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.625rem 0.875rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Input Group */
.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Share URL */
#share-url {
    background-color: #f8f9fa;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    margin-top: auto;
    background-color: white;
    border-top: 1px solid var(--border-color);
}

/* Security Notice */
.security-notice {
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: #664d03;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
}

.security-notice i {
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* Time display styling */
.local-time {
    display: block;
    font-size: 0.875em;
    margin-top: 0.25rem;
    color: #666;
}

.time-remaining {
    font-weight: 600;
}

.utc-time {
    font-weight: 500;
}

/* Success Alert */
.alert-success {
    border-radius: 8px;
    border: 1px solid #badbcc;
}

/* Loading spinner */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Scrollbar Styling */
.document-content::-webkit-scrollbar {
    width: 8px;
}

.document-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.document-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.document-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .local-time {
        display: inline;
        margin-left: 0.5rem;
        margin-top: 0;
    }
    
    main {
        padding: 3rem 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.3s ease-out;
}

/* Shadow Effects */
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.08)!important;
}

/* Hover Effects */
.card:hover {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.12)!important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Custom HR */
hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

/* Feature Icons */
.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.feature-icon i {
    font-size: 1.5rem;
}

/* How it Works Section */
.how-it-works {
    padding: 2rem 0;
}

/* Error Page */
.error-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.error-icon-wrapper i {
    font-size: 2.5rem;
}
