/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #070913;
    --bg-card: rgba(13, 17, 38, 0.45);
    --bg-card-hover: rgba(22, 28, 59, 0.65);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glass-hover: rgba(0, 240, 255, 0.25);
    
    --primary-neon: #00f0ff;
    --primary-glow: rgba(0, 240, 255, 0.35);
    --primary-solid: #0ea5e9;
    
    --secondary-neon: #d946ef;
    --secondary-glow: rgba(217, 70, 239, 0.25);
    
    --accent-gold: #f59e0b;
    --accent-gold-glow: rgba(245, 158, 11, 0.3);
    
    --success-green: #00ffaa;
    --success-glow: rgba(0, 255, 170, 0.25);
    
    --danger-red: #ff0055;
    --danger-glow: rgba(255, 0, 85, 0.3);
    
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #475569;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(217, 70, 239, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(7, 9, 19, 0.8) 0%, #070913 100%);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(7, 9, 19, 0.6);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: 2px solid transparent;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-neon);
}

/* Base Glass Containers */
.glass-container {
    background: var(--bg-card);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-container:hover {
    border-color: var(--border-glass-hover);
    box-shadow: 0 20px 50px rgba(0, 240, 255, 0.08);
}

/* Input Fields (Glassmorphism Styled) */
.glass-input {
    background: rgba(13, 17, 38, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
}
.glass-input:focus {
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px var(--primary-glow);
    background: rgba(13, 17, 38, 0.9);
}

/* Buttons */
.btn-neon {
    background: rgba(0, 240, 255, 0.03);
    color: var(--primary-neon);
    border: 1px solid var(--primary-neon);
    padding: 12px 26px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 6px var(--primary-glow);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
}
.btn-neon:hover {
    background: var(--primary-neon);
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
    text-shadow: none;
}
.btn-neon:active {
    transform: translateY(0);
}

.btn-gold {
    background: rgba(245, 158, 11, 0.03);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 12px 26px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 6px var(--accent-gold-glow);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.05);
}
.btn-gold:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
    text-shadow: none;
}

.btn-solid {
    background: linear-gradient(135deg, var(--primary-solid) 0%, #0284c7 100%);
    color: var(--text-white);
    border: none;
    padding: 13px 26px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.25);
}
.btn-solid:hover {
    background: linear-gradient(135deg, var(--primary-neon) 0%, var(--primary-solid) 100%);
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}

/* Authentication Page layout */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 20px;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
}
.auth-brand {
    text-align: center;
    margin-bottom: 30px;
}
.auth-brand h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 2px;
}
.auth-brand h1 span {
    color: var(--primary-neon);
}
.auth-brand p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Dashboard Page layout */
.dashboard-layout {
    display: flex;
    flex: 1;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background: rgba(7, 9, 19, 0.7);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    backdrop-filter: blur(20px);
    z-index: 10;
}
.sidebar-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 2px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-logo span {
    color: var(--primary-neon);
    text-shadow: 0 0 10px var(--primary-glow);
}
.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.sidebar-item.active a,
.sidebar-item a:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
}
.sidebar-item.active a {
    border-left: 3px solid var(--primary-neon);
    border-radius: 0 12px 12px 0;
    background: rgba(0, 240, 255, 0.05);
    color: var(--primary-neon);
    box-shadow: inset 10px 0 20px rgba(0, 240, 255, 0.02);
}
.sidebar-profile {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 12px;
}
.profile-avatar {
    width: 42px;
    height: 42px;
    background: var(--primary-glow);
    border: 1px solid var(--primary-neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-neon);
    font-weight: 600;
    box-shadow: 0 0 10px var(--primary-glow);
}
.profile-info {
    overflow: hidden;
}
.profile-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.profile-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px;
    overflow-y: auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}
.page-title h2 {
    font-size: 24px;
    font-weight: 600;
}
.page-title p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Grid layout for files/folders */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Folder and File cards */
.item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 190px;
}
.item-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glass-hover);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 240, 255, 0.15);
}
.item-card.encrypted {
    border-color: rgba(245, 158, 11, 0.18);
}
.item-card.encrypted:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.18);
}
.item-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary-neon);
    filter: drop-shadow(0 4px 8px var(--primary-glow));
}
.item-card.encrypted .item-icon {
    color: var(--accent-gold);
    filter: drop-shadow(0 4px 8px var(--accent-gold-glow));
}
.item-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.item-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    font-weight: 500;
}
.item-badge.badge-vault {
    color: var(--accent-gold);
    border-color: var(--accent-gold-glow);
    background: rgba(245, 158, 11, 0.07);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

/* Circular Delete Button on Hover */
.item-delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 0, 85, 0.08);
    border: 1px solid rgba(255, 0, 85, 0.2);
    color: var(--danger-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}
.item-card:hover .item-delete-btn {
    opacity: 1;
    transform: scale(1);
}
.item-delete-btn:hover {
    background: var(--danger-red);
    color: var(--text-white);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.5);
    transform: scale(1.1);
}

/* Image Thumbnail rendering inside file cards */
.item-thumb-wrapper {
    width: 100%;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.3);
}
.item-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.item-card:hover .item-thumb-img {
    transform: scale(1.08);
}

/* Footer & Signature Section */
.footer-branding {
    padding: 30px;
    border-top: 1px solid var(--border-glass);
    text-align: center;
    background: rgba(7, 9, 19, 0.9);
    backdrop-filter: blur(15px);
    margin-top: auto;
    width: 100%;
}
.footer-branding p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 5px 0;
}
.footer-branding a {
    color: var(--primary-neon);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.footer-branding a:hover {
    color: var(--text-white);
    text-shadow: 0 0 8px var(--primary-neon);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 9, 19, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-content {
    width: 100%;
    max-width: 500px;
    padding: 35px;
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.modal-title {
    font-size: 18px;
    font-weight: 600;
}
.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
}
.modal-close:hover {
    color: var(--text-white);
}

/* Audit Log Table */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    text-align: left;
}
.custom-table th {
    padding: 16px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
    font-size: 14px;
}
.custom-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    font-size: 14px;
    color: var(--text-white);
}
.custom-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

/* Gelişmiş Tasarım Stilleri */

/* Arama Çubuğu */
.search-wrapper {
    max-width: 420px;
    width: 100%;
}
.search-input-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}
.search-input {
    padding-left: 20px;
    padding-right: 48px;
}
.search-btn {
    position: absolute;
    right: 6px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
}
.search-btn:hover {
    color: var(--primary-neon);
}

/* Global Arama Dizin Yolu Gösterimi */
.search-path {
    font-size: 11px;
    color: var(--text-dark);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Büyük Önizleme Modalı */
.modal-content.preview-modal {
    max-width: 95% !important;
    width: 1200px !important;
    height: 90vh !important;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: rgba(7, 9, 19, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
}

.preview-body {
    flex: 1;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

.preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: none;
}

/* Office ve Desteklenmeyen Önizleme Kartı */
.preview-placeholder-card {
    text-align: center;
    padding: 40px;
    max-width: 480px;
}

.preview-placeholder-icon {
    font-size: 80px;
    color: var(--accent-gold);
    margin-bottom: 24px;
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.35));
}

.preview-placeholder-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.preview-placeholder-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Dosya Açıklaması Alanı */
.preview-desc-box {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border-left: 3px solid var(--primary-neon);
    line-height: 1.5;
}

/* Kullanıcı Düzenleme Formu Kartı */
.edit-form-card {
    background: rgba(13, 17, 38, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.18) !important;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.1) !important;
}

.edit-badge-active {
    background: rgba(0, 255, 170, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(0, 255, 170, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.edit-badge-passive {
    background: rgba(255, 0, 85, 0.1);
    color: var(--danger-red);
    border: 1px solid rgba(255, 0, 85, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .dashboard-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
        padding: 20px;
    }
    .sidebar-logo {
        margin-bottom: 20px;
    }
    .sidebar-menu {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .sidebar-profile {
        margin-top: 20px;
        padding-top: 15px;
    }
    .main-content {
        padding: 20px;
    }
    .top-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-wrapper {
        max-width: 100%;
    }
}
