/* Custom Styles - Premium Resim Yükleme Script */

/* Genel Body Stilleri */
body {
    background: linear-gradient(135deg, #1d2b64 0%, #111 100%);
    color: #e5e7eb;
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
}


/* Glass Card Efekti */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Dropzone Stilleri */
#dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#dropzone.dragover {
    border-color: #a78bfa;
    background: rgba(255, 255, 255, 0.1);
}

/* Preview Card Stilleri */
.preview-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

.preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.2);
    border-color: rgba(167, 139, 250, 0.4);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-img-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
}

.preview-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%, transparent 100%);
}

.preview-info {
    padding: 1rem;
}

.preview-name {
    font-size: 0.875rem;
    color: white;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.preview-size {
    font-size: 0.75rem;
    font-weight: 500;
    color: #a78bfa;
}

.preview-remove-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    opacity: 0;
    cursor: pointer;
    border: none;
}

.preview-card:hover .preview-remove-btn {
    opacity: 1;
}

.preview-remove-btn:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: scale(1.1);
}

.preview-remove-btn:active {
    transform: scale(0.95);
}

.preview-remove-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Result Card Stilleri */
.result-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-input-group {
    display: flex;
    border-radius: 0.375rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-input {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.875rem;
    background: rgba(0, 0, 0, 0.3);
    color: #a78bfa;
    border: none;
    font-family: monospace;
}

.link-input:focus {
    outline: none;
}

.copy-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    background: #8b5cf6;
    color: white;
    border: none;
    cursor: pointer;
}

.copy-btn:hover {
    background: #7c3aed;
}

.copy-btn.copied {
    background: #10b981;
}

/* Form Stilleri */
.form-select,
.form-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    background: rgba(0, 0, 0, 0.2);
    color: #d1d5db;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.3);
}

.form-select option {
    background: #374151;
    color: #e5e7eb;
}

.form-select option:not(:checked):hover {
    background: #4b5563;
}

.form-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.2);
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s, border-color 0.2s;
    margin-top: 2px;
}

.form-checkbox:checked {
    background-color: #8b5cf6;
    border-color: #8b5cf6;
}

.form-checkbox:checked::after {
    content: "";
    display: block;
    width: 0.3rem;
    height: 0.6rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
    top: 1px;
    left: 4px;
}

.form-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.3);
}

.password-input-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, margin-top 0.3s ease-out;
    margin-top: 0;
}

.password-input-wrapper.open {
    max-height: 100px;
    margin-top: 0.75rem;
}

/* Details/Summary Stilleri */
summary {
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::marker {
    display: none;
}

summary .arrow {
    display: inline-block;
    transition: transform 0.2s;
    margin-left: 0.5rem;
}

details[open] summary .arrow {
    transform: rotate(90deg);
}

/* === YENİ (TASARIM GÜNCELLEMESİ) === */
/* "Son Yüklemelerim" bölümü için yeni buton stilleri */
.recent-view-btn,
.recent-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem; /* Butonları biraz daha dolgun yaptık */
    border-radius: 8px; /* Daha yuvarlak kenarlar */
    font-size: 0.8rem; /* 13px */
    font-weight: 600; /* Yazı kalınlığı */
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent; 
    text-decoration: none;
    white-space: nowrap;
}

/* Görüntüle Butonu (Yeni Stil - Kenarlıklı) */
.recent-view-btn {
    background: transparent;
    color: #d1d5db; /* gray-300 */
    border-color: rgba(255, 255, 255, 0.2); 
}
.recent-view-btn:hover {
    background: rgba(255, 255, 255, 0.1); 
    color: white;
    border-color: rgba(255, 255, 255, 0.3); 
}
.recent-view-btn svg {
    /* İkon boyutları SVG tanımından geliyor (w-4 h-4) */
    width: 1rem;
    height: 1rem;
    color: #9ca3af; /* gray-400 */
    transition: color 0.2s;
}
.recent-view-btn:hover svg {
    color: white;
}

/* Kopyala Butonu (Yeni Stil - Dolgulu) */
.recent-copy-btn {
    background: #8b5cf6; /* purple-600 */
    color: white;
    border-color: #8b5cf6; 
}
.recent-copy-btn:hover {
    background: #7c3aed; /* purple-700 */
    border-color: #7c3aed; 
}
.recent-copy-btn.copied {
    background: #10b981; /* green-500 */
    color: white;
    border-color: #10b981; 
}
.recent-copy-btn svg {
    width: 0.9rem; /* 14px */
    height: 0.9rem;
}

/* Eski "recent-link-wrapper" stilleri (Artık Gerekli Değil ama kalsın) */
.recent-link-wrapper {
    display: flex;
    align-items: center;
}
.recent-link-input {
    background: rgba(0, 0, 0, 0.3);
    color: #a78bfa;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px 0 0 4px;
    padding: 0.1rem 0.4rem;
    font-size: 0.8rem;
    font-family: monospace;
    flex-grow: 1;
    min-width: 100px;
}
/* === GÜNCELLEME SONU === */


/* Header Button Stilleri - Modern & Şık */
.auth-buttons-container {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05);
}

.header-btn {
    padding: 0.5rem 1.125rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    cursor: pointer;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.header-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.header-btn:hover::before {
    left: 100%;
}

.header-btn svg,
.header-btn i {
    width: 0.875rem;
    height: 0.875rem;
    transition: transform 0.3s ease;
    z-index: 1;
    font-size: 0.875rem;
}

.header-btn:hover svg,
.header-btn:hover i {
    transform: translateX(2px);
}

.header-btn-login {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #ec4899 100%);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4),
                0 2px 8px rgba(167, 139, 250, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.25),
                0 0 15px rgba(139, 92, 246, 0.25);
}

.header-btn-login:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5),
                0 4px 12px rgba(167, 139, 250, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.35),
                0 0 20px rgba(139, 92, 246, 0.35);
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #db2777 100%);
}

.header-btn-login:active {
    transform: translateY(0) scale(1.01);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.header-btn-register {
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 50%, #f472b6 100%);
    box-shadow: 0 4px 16px rgba(167, 139, 250, 0.4),
                0 2px 8px rgba(192, 132, 252, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.25),
                0 0 15px rgba(167, 139, 250, 0.25);
}

.header-btn-register:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.5),
                0 4px 12px rgba(192, 132, 252, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.35),
                0 0 20px rgba(167, 139, 250, 0.35);
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #ec4899 100%);
}

.header-btn-register:active {
    transform: translateY(0) scale(1.01);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.4);
}

.header-btn-panel {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.header-btn-panel:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #4b8ef8 0%, #3573f0 100%);
}

.header-btn-logout {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.header-btn-logout:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.header-btn-logout:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .auth-buttons-container {
        gap: 0.5rem;
        padding: 0.25rem;
        border-radius: 10px;
    }
    
    .header-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
        gap: 0.375rem;
    }
    
    .header-btn svg,
    .header-btn i {
        width: 0.9375rem;
        height: 0.9375rem;
    }
}

@media (max-width: 640px) {
    .auth-buttons-container {
        gap: 0.375rem;
        padding: 0.25rem;
    }
    
    .header-btn {
        padding: 0.4375rem 0.875rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .header-btn span {
        display: none;
    }
    
    .header-btn svg,
    .header-btn i {
        width: 1rem;
        height: 1rem;
    }
}

.header-btn-green {
    background-color: rgba(22, 163, 74, 0.6);
    border-color: rgba(22, 163, 74, 0.8);
}

.header-btn-green:hover {
    background-color: rgba(22, 163, 74, 0.7);
}

.header-btn-red {
    background-color: rgba(239, 68, 68, 0.6);
    border-color: rgba(239, 68, 68, 0.8);
}

.header-btn-red:hover {
    background-color: rgba(220, 38, 38, 0.7);
}

.header-btn-blue {
    background-color: rgba(59, 130, 246, 0.6);
    border-color: rgba(59, 130, 246, 0.8);
}

.header-btn-blue:hover {
    background-color: rgba(59, 130, 246, 0.7);
}

/* View Image Page Stilleri */
.displayed-image {
    display: block;
    max-width: 90%;
    max-height: 40vh;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto 1rem auto;
}

.image-filename {
    color: #d1d5db;
    font-weight: 500;
    margin-bottom: 1rem;
    word-break: break-all;
    font-size: 1rem;
}

.actions-container {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-button,
.copy-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
    opacity: 1;
    color: white !important;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.share-button svg,
.share-button i,
.copy-link-button i {
    font-size: 18px;
}

.share-button.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0E5BC4 100%) !important;
    background-color: #1877F2 !important;
}

.share-button.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #1DA851 100%) !important;
    background-color: #25D366 !important;
}

.share-button.twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #0D8BD9 100%) !important;
    background-color: #1DA1F2 !important;
}

.share-button.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
}

.share-button.linkedin {
    background: linear-gradient(135deg, #0077B5 0%, #004182 100%) !important;
    background-color: #0077B5 !important;
    opacity: 1 !important;
}

.share-button.pinterest {
    background: linear-gradient(135deg, #E60023 0%, #BD081C 100%) !important;
    background-color: #E60023 !important;
    opacity: 1 !important;
}

.share-button.telegram {
    background: linear-gradient(135deg, #229ED9 0%, #0088cc 100%) !important;
    background-color: #229ED9 !important;
    opacity: 1 !important;
}

.share-button.reddit {
    background: linear-gradient(135deg, #FF5700 0%, #FF4500 100%) !important;
    background-color: #FF5700 !important;
    opacity: 1 !important;
}

.share-button.email {
    background: linear-gradient(135deg, #7C3AED 0%, #6366f1 100%) !important;
    background-color: #7C3AED !important;
    opacity: 1 !important;
}

.copy-link-button {
    background-color: #6b7280;
}

.share-button:hover,
.copy-link-button:hover {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.copy-link-button.copied {
    background-color: #10b981;
}

.report-abuse-container {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.report-abuse-btn {
    background-color: transparent;
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.report-abuse-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

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

/* Modal Stilleri */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    padding: 1rem;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.modal-content {
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

/* Modal mobil uyumluluk */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0.5rem;
        align-items: flex-end;
    }
    .modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 1.5rem;
        max-height: 85vh;
    }
    .modal-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    .modal-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1.25rem;
        border-radius: 12px 12px 0 0;
        max-height: 90vh;
    }
    .modal-title {
        font-size: 1.125rem;
    }
    .modal-text {
        font-size: 0.875rem;
    }
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fca5a5;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-text {
    font-size: 0.9rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.modal-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    border: none;
}

.modal-btn-confirm {
    background-color: #dc2626;
    color: white;
}

.modal-btn-confirm:hover {
    background-color: #b91c1c;
}

.modal-btn-cancel {
    background-color: #4b5563;
    color: white;
}

.modal-btn-cancel:hover {
    background-color: #6b7280;
}

/* Auth Page Stilleri */
.auth-container {
    width: 100%;
    max-width: 450px;
    margin: auto;
}

.auth-card {
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 2.5rem;
}

.site-title {
    display: block;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 2rem;
    text-decoration: none;
    transition: color 0.2s;
}

.site-title:hover {
    color: #e0e0e0;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-icon-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    transition: color 0.2s;
}

.form-input-auth {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    color: #d1d5db;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-input-auth::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input-auth:focus {
    outline: none;
    border-color: #a78bfa;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.form-input-auth:focus + .form-icon {
    color: #a78bfa;
}

/* Auth sayfası için form-input (ikonlu) */
.auth-container .form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    color: #d1d5db;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-container .form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-container .form-input:focus {
    outline: none;
    border-color: #a78bfa;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.3);
}

.auth-container .form-input:focus + .form-icon {
    color: #a78bfa;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 0.875rem;
    color: #d1d5db;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.submit-btn:hover {
    opacity: 0.9;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn-gradient-primary {
    background: linear-gradient(to right, #8b5cf6, #ec4899);
}

.btn-gradient-secondary {
    background: linear-gradient(to right, #3b82f6, #14b8a6);
}

.auth-switch-link {
    text-align: center;
    font-size: 0.875rem;
    color: #d1d5db;
    margin-top: 1.5rem;
}

.auth-switch-link a {
    color: #a78bfa;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-switch-link a:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

.footer-link {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: #9ca3af;
    transition: color 0.2s;
}

.footer-link a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-link a:hover {
    color: #a78bfa;
    text-decoration: underline;
}

/* Footer Stilleri - Geliştirilmiş */
footer {
    color: #9ca3af !important;
    font-size: 0.875rem;
    line-height: 1.6;
}

footer p {
    color: #9ca3af !important;
    font-size: 0.875rem;
    margin: 0.5rem 0;
    line-height: 1.6;
}

footer a {
    color: #a78bfa !important;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

footer a:hover {
    color: #c4b5fd !important;
    text-decoration: underline;
}

footer .text-gray-400,
footer .text-gray-500 {
    color: #9ca3af !important;
}

footer .text-gray-600 {
    color: #6b7280 !important;
}

footer .text-violet-400 {
    color: #a78bfa !important;
}

footer .hover\:text-violet-400:hover {
    color: #c4b5fd !important;
}

footer .hover\:underline:hover {
    text-decoration: underline;
}

/* Footer içindeki tüm metinler için */
footer * {
    color: inherit;
}

footer div {
    color: #9ca3af;
}

footer span {
    color: #6b7280;
}

/* Mobil footer */
@media (max-width: 768px) {
    footer {
        font-size: 0.8125rem;
        padding: 2rem 1rem !important;
    }
    
    footer p {
        font-size: 0.8125rem;
    }
    
    footer a {
        font-size: 0.8125rem;
    }
}

.alert-box {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.3);
}

/* Panelim Page Stilleri */
.table-container {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-container td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    font-size: 0.875rem;
    vertical-align: middle;
}

.table-container tbody tr:last-child td {
    border-bottom: none;
}

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

.img-preview {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s;
}

.img-preview:hover {
    transform: scale(1.1);
}

.link {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-block;
}

.link:hover {
    text-decoration: underline;
    color: #c4b5fd;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    margin-right: 5px;
}

.badge-expires {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.1);
}

.badge-locked {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap; /* Butonların alt satıra kaymasını engeller */
}

.action-btn {
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem;
}

.action-btn-delete {
    color: #fca5a5;
}

.action-btn-delete:hover {
    color: #ef4444;
    transform: scale(1.05);
}

.action-btn-edit {
    color: #a78bfa;
    font-size: 0.875rem;
    text-decoration: none;
}

.action-btn-edit:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

.action-btn-edit i,
.action-btn-delete i {
    font-size: 0.8rem;
}

/* Page.php Stilleri */
.page-content {
    padding: 2rem;
    color: #d1d5db;
}

.page-content h1,
.page-content h2 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.page-content h1 {
    font-size: 2.25rem;
}

.page-content h2 {
    font-size: 1.875rem;
}

/* DÜZELTME: page.php'deki HTML stilleri - Geliştirilmiş */
.content-output {
    line-height: 1.8;
    color: #e5e7eb;
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-output p {
    margin-bottom: 1rem;
    color: #e5e7eb;
    font-size: 1rem;
    line-height: 1.8;
}

.content-output h1,
.content-output h2,
.content-output h3,
.content-output h4,
.content-output h5,
.content-output h6 {
    color: #ffffff;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.content-output h1 {
    font-size: 2rem;
}

.content-output h2 {
    font-size: 1.75rem;
}

.content-output h3 {
    font-size: 1.5rem;
}

.content-output h4 {
    font-size: 1.25rem;
}

.content-output h5,
.content-output h6 {
    font-size: 1.125rem;
}

.content-output ul,
.content-output ol {
    list-style-type: disc;
    padding-left: 2rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.content-output ol {
    list-style-type: decimal;
}

.content-output li {
    margin-bottom: 0.5rem;
    color: #e5e7eb;
    line-height: 1.8;
}

.content-output strong,
.content-output b {
    color: #ffffff;
    font-weight: 600;
}

.content-output em,
.content-output i {
    font-style: italic;
}

.content-output a {
    color: #a78bfa;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.content-output a:hover {
    color: #c4b5fd;
}

.content-output code {
    background-color: rgba(0, 0, 0, 0.3);
    color: #fca5a5;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: 'Monaco', 'Courier New', monospace;
}

.content-output pre {
    background-color: rgba(0, 0, 0, 0.3);
    color: #e5e7eb;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.content-output blockquote {
    border-left: 4px solid #a78bfa;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #d1d5db;
    font-style: italic;
}

.content-output hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

.content-output img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.content-output table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.content-output table th,
.content-output table td {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.content-output table th {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-weight: 600;
}

.content-output table td {
    color: #e5e7eb;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .content-output {
        font-size: 0.9375rem;
        line-height: 1.7;
    }
    
    .content-output h1 {
        font-size: 1.75rem;
    }
    
    .content-output h2 {
        font-size: 1.5rem;
    }
    
    .content-output h3 {
        font-size: 1.25rem;
    }
    
    .content-output ul,
    .content-output ol {
        padding-left: 1.5rem;
    }
    
    /* Mobil için genel iyileştirmeler */
    body {
        padding: 1rem !important;
    }
    
    .glass-card {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
    
    /* Header butonları mobilde daha küçük */
    .header-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .header-btn svg,
    .header-btn i {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    /* Başlıklar mobilde daha küçük */
    h1 {
        font-size: 2rem !important;
    }
    
    /* Preview kartları mobilde tek sütun */
    #preview-list {
        grid-template-columns: 1fr !important;
    }
    
    /* Sonuç kartları mobilde daha kompakt */
    .result-card {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    /* Link input grupları mobilde daha iyi */
    .link-input {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    .copy-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Paylaşım butonları mobilde daha küçük */
    .share-button,
    .copy-link-button {
        width: 36px;
        height: 36px;
    }
    
    .share-button svg,
    .share-button i,
    .copy-link-button i {
        font-size: 16px;
    }
    
    /* Tablo mobilde scroll */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-container table {
        min-width: 600px;
    }
    
    /* Modal mobilde daha iyi */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    /* Auth kartı mobilde daha kompakt */
    .auth-card {
        padding: 1.5rem;
    }
    
    /* Resim önizleme mobilde daha küçük */
    .displayed-image {
        max-height: 30vh;
    }
}

/* Çok küçük ekranlar için ekstra iyileştirmeler */
@media (max-width: 480px) {
    body {
        padding: 0.5rem !important;
    }
    
    .glass-card {
        padding: 1rem !important;
        border-radius: 12px !important;
    }
    
    /* Başlıklar daha da küçük */
    h1 {
        font-size: 1.5rem !important;
    }
    
    /* Header butonları çok küçük ekranlarda */
    .header-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Kullanıcı adı gizle */
    header .text-sm {
        display: none !important;
    }
    
    /* Paylaşım butonları daha küçük */
    .share-button,
    .copy-link-button {
        width: 32px;
        height: 32px;
    }
    
    .share-button svg,
    .share-button i,
    .copy-link-button i {
        font-size: 14px;
    }
    
    /* Actions container mobilde wrap */
    .actions-container {
        gap: 0.5rem;
    }
    
    /* Form elementleri daha küçük */
    .form-select,
    .form-input {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    /* Submit butonu daha küçük */
    .submit-btn {
        padding: 0.85rem;
        font-size: 0.9rem;
    }
    
    /* Modal daha küçük */
    .modal-content {
        padding: 1.25rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-text {
        font-size: 0.85rem;
    }
    
    /* Tablo hücreleri daha küçük */
    .table-container th,
    .table-container td {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Resim önizleme daha küçük */
    .img-preview {
        width: 60px;
        height: 40px;
    }
}
/* DÜZELTME SONU */


/* Error Message Stilleri */
.error-msg {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Z-index için */
.z-10 {
    z-index: 10;
}

.z-100 {
    z-index: 100;
}

/* Absolute positioning */
.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.fixed {
    position: fixed;
}

.top-0 {
    top: 0;
}

.right-0 {
    right: 0;
}

/* Flex grow */
.flex-grow {
    flex-grow: 1;
}

/* Object fit */
.object-fit-cover {
    object-fit: cover;
}

.object-fit-contain {
    object-fit: contain;
}

/* Word break */
.word-break-all {
    word-break: break-all;
}

/* Invisible */
.invisible {
    visibility: hidden;
}

/* Select none */
.select-none {
    user-select: none;
}

/* Whitespace */
.whitespace-nowrap {
    white-space: nowrap;
}

/* Text overflow */
.text-overflow-ellipsis {
    text-overflow: ellipsis;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

/* Colspan için */
[colspan] {
    text-align: center;
}

/* Reklam Container Stilleri */
.ad-container {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.ad-container iframe,
.ad-container ins,
.ad-container div[class*="ads"],
.ad-container div[id*="ads"],
.ad-container script + div,
.ad-container .adsbygoogle {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto;
    display: block;
    height: auto !important;
}

/* Google AdSense için özel stiller */
.ad-container ins.adsbygoogle {
    display: block !important;
    text-align: center;
}

/* Reklam içindeki tüm elementler için responsive */
.ad-container * {
    max-width: 100% !important;
    box-sizing: border-box;
}

.ad-container img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* Reklamların responsive olması için */
@media (max-width: 768px) {
    .ad-container {
        margin: 1rem 0;
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .ad-container iframe,
    .ad-container ins,
    .ad-container div[class*="ads"],
    .ad-container div[id*="ads"],
    .ad-container .adsbygoogle {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    
    /* Google AdSense mobil uyumluluğu */
    .ad-container ins.adsbygoogle[data-ad-format] {
        width: 100% !important;
        min-width: 0 !important;
    }
    
    /* Reklam içindeki tüm div'ler için */
    .ad-container > div {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .ad-container {
        margin: 0.75rem 0;
        padding: 0.5rem;
        border-radius: 6px;
    }
    
    /* Çok küçük ekranlar için ekstra ayarlar */
    .ad-container iframe {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 50px !important;
    }
    
    /* Google AdSense için mobil boyutlar */
    .ad-container ins.adsbygoogle {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Popup Reklam Stilleri */
.popup-ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-ad-content {
    position: relative;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-ad-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.popup-ad-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.popup-ad-body {
    padding: 2.5rem 2rem 2rem 2rem;
    text-align: center;
}

.popup-ad-body iframe,
.popup-ad-body ins,
.popup-ad-body div[class*="ads"],
.popup-ad-body div[id*="ads"] {
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

/* Mobil için popup reklam stilleri */
@media (max-width: 768px) {
    .popup-ad-overlay {
        padding: 0.5rem;
    }
    
    .popup-ad-content {
        max-width: 100%;
        width: 100%;
        border-radius: 16px;
        max-height: 95vh;
    }
    
    .popup-ad-body {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
    
    .popup-ad-body iframe,
    .popup-ad-body ins,
    .popup-ad-body div[class*="ads"],
    .popup-ad-body div[id*="ads"],
    .popup-ad-body .adsbygoogle {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    
    .popup-ad-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .popup-ad-overlay {
        padding: 0.25rem;
    }
    
    .popup-ad-content {
        max-width: 100%;
        width: 100%;
        border-radius: 12px;
        max-height: 98vh;
    }
    
    .popup-ad-body {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    
    .popup-ad-body iframe {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 100px !important;
    }
    
    .popup-ad-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    /* Popup içindeki tüm elementler için */
    .popup-ad-body * {
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

/* Kısa URL Input Alanı - Basit ve Çalışan Stil */
#shortUrlInput {
    color: #ffffff !important;
    background-color: rgba(17, 24, 39, 0.8) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.5) transparent;
}

#shortUrlInput::-webkit-scrollbar {
    height: 6px;
}

#shortUrlInput::-webkit-scrollbar-track {
    background: transparent;
}

#shortUrlInput::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 3px;
}

#shortUrlInput::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

#copyShortUrlBtn.copied {
    background: linear-gradient(to right, #10b981, #059669) !important;
}

/
* Touch-friendly iyileştirmeler */
@media (hover: none) and (pointer: coarse) {
    /* Dokunmatik cihazlar için daha büyük tıklama alanları */
    .header-btn,
    .copy-btn,
    .action-btn,
    .share-button,
    .copy-link-button,
    .recent-view-btn,
    .recent-copy-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Hover efektlerini kaldır */
    .preview-card:hover {
        transform: none;
    }
    
    .preview-remove-btn {
        opacity: 1;
    }
}

/* Landscape mode için iyileştirmeler */
@media (max-width: 768px) and (orientation: landscape) {
    .displayed-image {
        max-height: 50vh;
    }
    
    .glass-card {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Tablet için özel ayarlar */
@media (min-width: 481px) and (max-width: 1024px) {
    #preview-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .actions-container {
        gap: 1rem;
    }
}
