/* Body */
body {
    background: #1e1e1e;
    color: #d1d5db;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* Site Header */
.site-header {
    background: #000000;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8b0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Authentication Section (index.php) */
.auth-section {
    margin: 30px 0;
    text-align: center;
}

.auth-section h1 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 1rem;
    color: #9ca3af;
    margin-bottom: 20px;
}

/* Dropdown Butonları */
.auth-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.dropdown-button {
    background-color: #374151;
    color: #d1d5db;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.dropdown-button:hover {
    background-color: #4b5563;
    transform: translateY(-2px);
}

.dropdown-button.active {
    background: linear-gradient(135deg, #4b5e8e, #7c3aed);
    color: #ffffff;
}

/* Dropdown İçeriği */
.dropdown-content {
    display: none;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, transform 0.3s ease-out;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
}

.dropdown-content.active {
    display: block;
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

/* Form Tasarımı */
.form-card {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

.form-card:hover {
    transform: translateY(-4px);
}

.form-card label {
    color: #d1d5db;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #4b5e8e;
    border-radius: 8px;
    background: #1e1e1e;
    color: #ffffff;
    font-size: 0.9rem;
}

.form-card input[type="file"] {
    padding: 5px;
}

.form-card textarea {
    resize: vertical;
    min-height: 100px;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.3);
}

.form-card small {
    color: #9ca3af;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 10px;
}

.auth-button,
.share-button,
.contact-button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #4b5e8e, #7c3aed);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.auth-button:hover,
.share-button:hover,
.contact-button:hover {
    background: linear-gradient(135deg, #7c3aed, #4b5e8e);
    transform: translateY(-2px);
}

/* Hata ve Başarı Mesajları */
.message-box {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.message-box.error-box {
    background-color: #fee2e2;
    border: 1px solid #f87171;
    color: #dc2626;
}

.message-box.success-box {
    background-color: #d1fae5;
    border: 1px solid #34d399;
    color: #047857;
}

.message-icon {
    font-size: 1.2rem;
    margin-right: 10px;
}

.message-box p {
    margin: 0;
}

.suggestion {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #374151;
}

.suggestion strong {
    color: #7c3aed;
    cursor: pointer;
}

.suggestion strong:hover {
    text-decoration: underline;
}

/* Eski Hata ve Başarı Mesajları (Uyumluluk için) */
.error {
    color: #ef4444;
    background: #2a2a2a;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    text-align: center;
    font-size: 0.9rem;
}

.success {
    color: #10b981;
    background: #2a2a2a;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    text-align: center;
    font-size: 0.9rem;
}

/* User Page (user_page.php) */
.user-section {
    margin: 30px 0;
}

.user-section h1 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.user-header-text {
    font-size: 0.9rem;
    color: #d1d5db;
}

.user-header-text a {
    color: #4b5e8e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.user-header-text a:hover {
    color: #7c3aed;
}

.share-form {
    margin-bottom: 30px;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.link-card {
    background: #2a2a2a;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.link-card:hover {
    transform: translateY(-4px);
}

.link-card h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.link-card p {
    margin-bottom: 8px;
}

.link-button {
    display: inline-block;
    padding: 8px 12px;
    background: linear-gradient(135deg, #00c4b4, #7b61ff);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

.link-button:hover {
    background: linear-gradient(135deg, #7b61ff, #00c4b4);
    transform: translateY(-2px);
}

.link-meta {
    font-size: 0.85rem;
    color: #9ca3af;
}

.delete-button {
    display: inline-block;
    padding: 8px 12px;
    background: #ef4444;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

.delete-button:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.no-links {
    text-align: center;
    font-size: 1rem;
    color: #9ca3af;
}

/* Liste Formatı için Stiller (profile.php) */
.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-item {
    background: #2a2a2a;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

.link-item:hover {
    transform: translateY(-4px);
}

.link-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-content strong {
    font-size: 1.1rem;
    color: #ffffff;
}

.link-actions {
    display: flex;
    gap: 10px;
}

.link-meta {
    font-size: 0.85rem;
    color: #9ca3af;
}

.report-button {
    background: #4b5e8e;
    color: #ffffff;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.report-button:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

.report-form {
    margin-top: 10px;
}

.report-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #4b5e8e;
    border-radius: 8px;
    background: #1e1e1e;
    color: #ffffff;
    font-size: 0.9rem;
}

.report-form textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.3);
}

/* Privacy Policy ve Contact Sayfaları */
.policy-section,
.contact-section {
    margin: 30px 0;
}

.policy-card,
.contact-card {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    max-width: 100%;
    margin: 0 auto;
    transition: transform 0.2s ease;
}

.policy-card:hover,
.contact-card:hover {
    transform: translateY(-4px);
}

.policy-card h2,
.contact-card h2 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.policy-card h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin: 16px 0 8px;
}

.policy-card p,
.contact-card p {
    font-size: 0.9rem;
    color: #d1d5db;
    margin-bottom: 12px;
}

.policy-card a,
.contact-card a {
    color: #4b5e8e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.policy-card a:hover,
.contact-card a:hover {
    color: #7c3aed;
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    border-top: 1px solid #4b5e8e;
}

.footer p {
    font-size: 0.8rem;
    color: #9ca3af;
}

.disclaimer {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 8px;
}

.disclaimer a {
    color: #4b5e8e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.disclaimer a:hover {
    color: #7c3aed;
}

/* Admin Paneli */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #1a202c;
}

/* Sidebar */
.admin-sidebar {
    width: 250px;
    background-color: #2d3748;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    bottom: 0;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 30px;
}

.sidebar-header h2 {
    color: #d1d5db;
    font-size: 1.5rem;
    margin: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.nav-link {
    color: #a0aec0;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
    background-color: #4b5563;
    color: #ffffff;
}

.nav-link.active {
    background-color: #7c3aed;
    color: #ffffff;
}

.nav-link.logout {
    background-color: #f87171;
    color: #ffffff;
    margin-top: auto;
}

.nav-link.logout:hover {
    background-color: #ef4444;
}

/* Ana İçerik */
.admin-main {
    margin-left: 250px;
    padding: 40px;
    flex: 1;
    background-color: #1a202c;
    color: #d1d5db;
}

.admin-section {
    display: none;
    margin-bottom: 40px;
}

.admin-section h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* İstatistik Kartları */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background-color: #2d3748;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    margin: 0 0 10px;
    color: #a0aec0;
    font-size: 1.1rem;
}

.stat-card p {
    margin: 0;
    color: #7c3aed;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Tablolar */
.table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #2d3748;
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #4b5563;
}

.admin-table th {
    background-color: #374151;
    color: #ffffff;
    font-weight: 600;
}

.admin-table td {
    color: #d1d5db;
}

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

.admin-table tr:hover {
    background-color: #374151;
}

/* İşlem Butonları */
.action-button {
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 5px;
    transition: background-color 0.3s ease;
}

.action-button.ban {
    background-color: #f87171;
    color: #ffffff;
}

.action-button.ban:hover {
    background-color: #ef4444;
}

.action-button.delete {
    background-color: #ef4444;
    color: #ffffff;
}

.action-button.delete:hover {
    background-color: #dc2626;
}

.action-button.resolve {
    background-color: #10b981;
    color: #ffffff;
}

.action-button.resolve:hover {
    background-color: #059669;
}

/* Linkler */
.link {
    color: gold;
    text-decoration: none;
}

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

/* Veri Yok Mesajı */
.no-data {
    background-color: #2d3748;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .site-title {
        font-size: 1.3rem;
    }

    .auth-section h1 {
        font-size: 1.5rem;
    }

    .dropdown-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .form-card {
        padding: 15px;
    }

    .user-section h1 {
        font-size: 1.5rem;
    }

    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        position: static;
        padding: 15px;
    }

    .admin-main {
        margin-left: 0;
        padding: 20px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .admin-section h2 {
        font-size: 1.4rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-card p {
        font-size: 1.5rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px;
        font-size: 0.85rem;
    }

    .link-actions {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .auth-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .dropdown-button {
        width: 100%;
    }

    .message-box {
        max-width: 100%;
    }
}
.stats {
    font-size: 1rem;
    color: #d1d5db;
    margin-top: 10px;
}

.link-meta small {
    display: block;
    margin-top: 5px;
    color: #9ca3af;
}

/* Form Bölümüne İkonlar ve İyileştirmeler */
.share-form-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.share-form {
    flex: 1;
    min-width: 300px;
    background: #1f2937;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.share-form h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.form-description {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 15px;
}

.form-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-icon {
    color: #9ca3af;
    font-size: 1.2rem;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.form-card input,
.form-card select {
    padding: 10px 10px 10px 35px; /* İkon için sol padding artırıldı */
    border: 1px solid #4b5563;
    border-radius: 5px;
    background: #374151;
    color: #ffffff;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.form-card input[type="file"] {
    padding: 5px 5px 5px 35px;
}

.form-card small {
    color: #9ca3af;
    font-size: 0.875rem;
    padding-left: 35px; /* İkonla hizalı */
}

.share-button {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, background-color 0.3s;
}

.share-button:hover {
    transform: translateY(-2px);
    background-color: #2563eb;
}