@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #050505;
    --card-bg: rgba(30, 30, 30, 0.6);
    --primary-color: #ff0033;
    --primary-hover: #cc0029;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --success: #00ff88;
    --offline: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 0, 51, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 51, 0.05) 0%, transparent 20%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Authentication Cards (Login/Register) */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.8s ease-out;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 0, 51, 0.5);
}

.auth-header p {
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* KVKK Checkbox Styles */
.kvkk-container {
    display: flex;
    align-items: center;
    /* Merkeze hizala */
    gap: 12px;
    margin-bottom: 1.5rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.kvkk-container:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 0, 51, 0.2);
}

.kvkk-container input[type="checkbox"] {
    min-width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.kvkk-container label {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.4;
    user-select: none;
}

.kvkk-container a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

/* KVKK Modal Styles */
.kvkk-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.kvkk-modal.active {
    display: flex;
}

.kvkk-modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.kvkk-modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kvkk-modal-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.kvkk-modal-body {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.kvkk-modal-footer {
    text-align: right;
}

.btn-close-kvkk {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-kvkk:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 51, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 51, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-container {
    display: grid;
    gap: 20px;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    border: var(--glass-border);
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.btn-logout {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid rgba(255, 0, 51, 0.3);
    color: var(--primary-color);
    width: auto;
}

.btn-logout:hover {
    background: rgba(255, 0, 51, 0.1);
}

/* User List (Admin Only) */
.admin-panel {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .container {
        margin-top: 10px !important;
    }

    .nav-bar {
        flex-direction: column;
        gap: 15px;
        padding: 1rem;
        text-align: center;
    }

    .user-info {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
    }

    .user-info h2 {
        font-size: 1.2rem;
        margin-left: 0 !important;
        /* Override inline styles */
    }

    .btn-back {
        width: 100%;
        justify-content: center;
    }

    .btn-logout {
        width: 100%;
    }

    .admin-panel {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 2rem;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    .profile-info h3 {
        font-size: 1.5rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .about-card [style*="display: flex; align-items: center; gap: 15px"] {
        flex-direction: column;
        text-align: center;
        gap: 10px !important;
    }

    .dashboard-tabs {
        flex-direction: row;
        gap: 5px;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        flex: 1;
        white-space: nowrap;
    }

    .social-links {
        justify-content: center;
    }

    .message-box {
        height: calc(100vh - 250px) !important;
    }

    .messages {
        padding: 0.8rem;
    }

    .message {
        max-width: 90%;
        padding: 0.8rem;
    }

    .message-input-area .form-control {
        padding-left: 40px !important;
        padding-right: 45px !important;
        font-size: 0.9rem;
    }

    .emoji-btn-inline {
        left: 5px;
    }

    .btn-send-inline {
        right: 5px;
    }

    .emoji-picker-popover {
        width: 100%;
        left: 0 !important;
        right: 0 !important;
    }

    emoji-picker {
        width: 100% !important;
        max-width: 100%;
        height: 300px !important;
    }

    /* Grid Adjustments */
    #full-projects-list,
    .photo-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .logo {
        font-size: 2rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .social-btn {
        width: 100%;
        justify-content: center;
    }

    .nav-bar h2 {
        font-size: 1.1rem;
    }
}

.panel-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: var(--glass-border);
    padding: 1.5rem;
    border-radius: 20px;
    height: 100%;
}

.panel-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-list {
    list-style: none;
    max-height: 500px;
    overflow-y: auto;
}

.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
    border-radius: 12px;
    transition: all 0.2s;
}

.user-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.user-active-status {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 20px;
}

.status-online {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
}

.status-offline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Messaging Area */
.message-box {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 12px;
    max-width: 80%;
    animation: slideIn 0.3s ease;
}

.message-received {
    background: rgba(255, 255, 255, 0.1);
    margin-right: auto;
}

.message-sent {
    background: rgba(255, 0, 51, 0.15);
    margin-left: auto;
    border: 1px solid rgba(255, 0, 51, 0.2);
}

.message-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}

.message-input-area {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0 !important;
}

.message-input-area .form-control {
    padding-left: 50px !important;
    padding-right: 50px !important;
    height: 50px;
}

.emoji-btn-inline {
    position: absolute;
    left: 10px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: 30px !important;
    z-index: 5;
}

.btn-send-inline {
    position: absolute;
    right: 7px;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    background: var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(255, 0, 51, 0.3);
}

.btn-send-inline i {
    font-size: 0.9rem;
    margin-left: 2px;
    /* Dengelemek için */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.error-msg {
    color: #ff3333;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1rem;
    background: rgba(255, 51, 51, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
}


.success-msg {
    color: var(--success);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1rem;
    background: rgba(0, 255, 136, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

/* Komut Önerileri Kutusu */
.command-suggestions {
    position: absolute;
    bottom: 100%;
    /* Inputun üstünde çıkması için */
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border: var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: 12px;
    margin-bottom: 10px;
    display: none;
    /* Başlangıçta gizli */
    overflow: hidden;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.command-item {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
}

.command-item:hover,
.command-item.active {
    background: rgba(255, 0, 51, 0.2);
}

.command-item strong {
    color: var(--primary-color);
}

.command-item small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Emoji Picker Styles */
.btn-icon {
    padding: 0.8rem;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.emoji-picker-popover {
    position: absolute;
    bottom: 110%;
    left: 0;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

.emoji-picker-popover.active {
    display: block;
}

emoji-picker {
    --background: #1a1a1a;
    --border-color: #333;
    --indicator-color: var(--primary-color);
    --input-border-color: #333;
    width: 320px;
    height: 400px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 0, 51, 0.5);
    animation: loaderPulse 2s infinite;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    animation: loading 1.5s infinite;
}

.upload-progress {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--success);
    transition: left 0.3s ease;
}

@keyframes loading {
    to {
        left: 100%;
    }
}

@keyframes loaderPulse {
    0% {
        opacity: 0.6;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.6;
        transform: scale(0.98);
    }
}

.notif-badge {
    background: #ff0033;
    color: white;
    font-size: 10px;
    font-weight: 700;
    height: 20px;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.4);
    border: 1px solid #1a1a1a;
}

/* Notification Permission Banner */
.notification-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffcc00;
    color: #000;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10001;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.notif-badge-dot {
    width: 10px;
    height: 10px;
    background: #ff0033;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #ff0033;
    margin-left: 8px;
    vertical-align: middle;
}

/* Read Status Icons */
.read-status {
    font-size: 0.8rem;
    margin-left: 5px;
    color: #888;
    display: inline-flex;
    align-items: center;
    vertical-align: bottom;
}

.read-status.read {
    color: #4fc3f7;
    /* WhatsApp benzeri mavi tık rengi */
}

.read-status svg {
    display: block;
}

/* Member Tabs & About Card */
.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--card-bg);
    border: var(--glass-border);
    color: var(--text-muted);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.3);
    border-color: var(--primary-color);
}

.about-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    color: var(--text-color);
    animation: fadeIn 0.8s ease-out;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 5px;
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.4);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.profile-info p {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
}

.about-text {
    line-height: 1.6;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    color: var(--primary-color);
}

.clickable-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px dashed var(--primary-color);
    transition: all 0.3s ease;
}

.clickable-link:hover {
    color: white;
    border-bottom-style: solid;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 51, 0.3);
}

.footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.footer span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Enhanced Back Button */
.btn-back {
    position: relative;
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.btn-back-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-back i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 0, 51, 0.1);
    border-color: rgba(255, 0, 51, 0.3);
    transform: translateX(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-back:hover i {
    transform: translateX(-3px);
    color: var(--primary-color);
}

.btn-back:hover span {
    color: var(--primary-color);
}

.btn-back-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 0, 51, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
}

.btn-back:hover .btn-back-glow {
    width: 200px;
    height: 200px;
}