/* TempShare Custom Styles */

:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

html, body {
    height: 100%;
}

body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* Jumping title animation */
.jumping-title {
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jumping-title:hover {
    animation-play-state: paused;
    transform: scale(1.05);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.compact-type-btn {
    padding: 0.75rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.025em !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    border: 2px solid transparent !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #495057 !important;
    text-transform: uppercase !important;
    font-size: 0.875rem !important;
}

.compact-type-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.compact-type-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
    border-color: rgba(0,123,255,0.3) !important;
}

.compact-type-btn:hover::before {
    opacity: 1;
}

.compact-type-btn svg {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.compact-type-btn:hover svg {
    transform: scale(1.1);
}

/* Specific colors for each tab type */
.btn-check:checked + label.compact-type-btn[for="textType"] {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: white !important;
    border-color: #007bff !important;
    box-shadow: 0 4px 15px rgba(0,123,255,0.4) !important;
}

.btn-check:checked + label.compact-type-btn[for="codeType"] {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
    color: white !important;
    border-color: #28a745 !important;
    box-shadow: 0 4px 15px rgba(40,167,69,0.4) !important;
}

.btn-check:checked + label.compact-type-btn[for="passwordType"] {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    color: #212529 !important;
    border-color: #ffc107 !important;
    box-shadow: 0 4px 15px rgba(255,193,7,0.4) !important;
}

.btn-check:checked + label.compact-type-btn[for="fileType"] {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%) !important;
    color: white !important;
    border-color: #17a2b8 !important;
    box-shadow: 0 4px 15px rgba(23,162,184,0.4) !important;
}

.btn-check:checked + .compact-type-btn {
    transform: translateY(-1px) !important;
}

.btn-check:checked + .compact-type-btn svg {
    transform: scale(1.15) !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)) !important;
}

.compact-drag-drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    min-height: 280px;
    padding: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
}

.compact-drag-drop-zone:hover {
    border-color: var(--primary-color);
    background-color: #f0f8ff;
}

.compact-drag-drop-zone.dragover,
.compact-drag-drop-zone.drag-over {
    border-color: var(--primary-color);
    background-color: #e6f3ff;
}

/* Feature cards */
.feature-card {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #dee2e6;
}

.feature-card i {
    width: 24px;
    height: 24px;
}

/* Beautiful expiry buttons */
.btn-outline-secondary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.btn-check:checked + .btn-outline-secondary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a73e8 100%);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 6px rgba(54, 110, 255, 0.25);
}

.btn-check:checked + .btn-outline-secondary:hover {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(54, 110, 255, 0.35);
}

/* Beautiful share button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a73e8 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(54, 110, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(54, 110, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(54, 110, 255, 0.3);
}

/* Larger text inputs */
.larger-textarea {
    font-size: 1rem;
    padding: 0.75rem;
    line-height: 1.6;
}

/* Beautiful button groups for expiry options */
.btn-group {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.btn-group .btn-sm {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 0;
}

.btn-group .btn-sm:first-child {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.btn-group .btn-sm:last-child {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.form-control {
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
}

.text-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    max-height: 400px;
    overflow-y: auto;
}

pre code {
    display: block;
    padding: 1rem;
    background-color: #f8f9fa !important;
    border-radius: 0.375rem;
    max-height: 400px;
    overflow-y: auto;
}

.file-preview-item {
    padding: 0.5rem;
    margin: 0.25rem;
    background-color: #e9ecef;
    border-radius: 0.375rem;
    display: inline-block;
    font-size: 0.875rem;
}

.file-preview-item .file-size {
    color: #6c757d;
    font-size: 0.75rem;
}

.card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.alert {
    border-radius: 0.75rem;
    border: none;
}

.list-group-item {
    border-radius: 0.375rem !important;
    margin-bottom: 0.5rem;
    border: 1px solid #dee2e6 !important;
}

.toast {
    background-color: var(--success-color);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Make tabs more mobile-friendly */
    .compact-type-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.75rem !important;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        flex: 1;
        border-radius: 0.5rem !important;
    }
    
    .compact-type-btn svg {
        width: 16px !important;
        height: 16px !important;
        margin-right: 0.375rem !important;
    }
    
}

/* Extra small screens - reduce button text further */
@media (max-width: 576px) {
    .compact-type-btn {
        padding: 0.375rem 0.5rem !important;
        font-size: 0.7rem !important;
        border-radius: 0.5rem !important;
    }
    
    .compact-type-btn svg {
        width: 14px !important;
        height: 14px !important;
        margin-right: 0.25rem !important;
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .btn {
    position: relative;
}

.loading .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Syntax highlighting improvements */
pre[class*="language-"] {
    margin: 0;
    padding: 0;
    background: transparent !important;
}

code[class*="language-"] {
    background: #f8f9fa !important;
}

/* Copy button positioning */
.position-relative .copy-btn {
    z-index: 5;
}

/* Interactive enhancements */
.drag-drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drag-drop-zone:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.05);
}

.drag-drop-zone.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.1);
    transform: scale(1.02);
}

.drag-drop-zone .upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.drag-drop-zone:hover .upload-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.drag-drop-zone.drag-over .upload-icon {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Live preview styles */
.live-preview {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-top: 1rem;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    transition: all 0.3s ease;
}

.live-preview:empty::after {
    content: 'Your content will appear here as you type...';
    color: #6c757d;
    font-style: italic;
    font-family: inherit;
}

/* Progress indicators */
.upload-progress {
    margin-top: 1rem;
}

.progress {
    height: 0.5rem;
    border-radius: 0.375rem;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.3s ease;
}


