:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-bg: rgba(255, 255, 255, 0.05);
    --danger-color: #ef4444;
    --success-color: #10b981;
    --blob-1: #4f46e5;
    --blob-2: #ec4899;
    --blob-3: #06b6d4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Arkaplan Efektleri (Blobs) */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--blob-1);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--blob-2);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: var(--blob-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes move {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -20px) scale(1.1); }
}

/* Container */
.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Auth View */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
}

/* Form Elemanları */
.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.3s;
}

input, textarea {
    width: 100%;
    background: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem 1rem 1rem 3rem; 
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s;
}

textarea {
    padding: 1rem;
    resize: vertical;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

input:focus + .input-icon {
    color: var(--primary-color);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

.toggle-password:hover {
    color: var(--text-color);
}

/* Butonlar */
.primary-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.primary-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.secondary-btn {
    background: var(--secondary-bg);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.danger-btn {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.danger-btn:hover {
    background: var(--danger-color);
    color: white;
}

.text-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
}

.text-btn:hover {
    text-decoration: underline;
}

.icon-btn {
    background: var(--secondary-bg);
    border: none;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo-small {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

/* Login/Logout Button Styling Distinction */
.logout:hover {
    background: var(--danger-color);
}

/* Şifre Listesi */
.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar input {
    padding-left: 2.5rem;
    border-radius: 20px;
    height: 45px;
}

.password-list-container {
    max-height: 400px;
    overflow-y: auto;
    margin: 0 -1rem;
    padding: 0 1rem;
}

/* Scrollbar Style */
.password-list-container::-webkit-scrollbar {
    width: 6px;
}

.password-list-container::-webkit-scrollbar-track {
    background: transparent;
}

.password-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.password-item {
    background: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
}

.password-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.01);
}

.item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-icon {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.item-details h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.item-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.item-actions {
    opacity: 0;
    transition: opacity 0.2s;
}

.password-item:hover .item-actions {
    opacity: 1;
}

/* FAB */
.fab-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fab-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Mobile bottom sheet style */
    backdrop-filter: blur(5px);
}

@media (min-width: 480px) {
    .modal-overlay {
        align-items: center;
    }
    .modal {
        width: 100%;
        max-width: 450px;
        border-radius: 24px;
        margin: 20px;
    }
}

.modal {
    width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-actions.center {
    justify-content: center;
}

/* Detail Modal Specs */
.detail-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-header-content .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.detail-row {
    margin-bottom: 1.5rem;
    background: var(--secondary-bg);
    padding: 1rem;
    border-radius: 12px;
}

.detail-row label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.copy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-btn, .icon-action {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.copy-btn:hover, .icon-action:hover {
    color: var(--primary-color);
}

.d-flex {
    display: flex;
    gap: 10px;
}

/* Generator Options */
.generator-options {
    background: var(--secondary-bg);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
}

.range-slider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.checkboxes {
    display: flex;
    justify-content: space-between;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.action-btn {
    position: absolute;
    right: 3rem; 
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}
.action-btn:hover { color: var(--text-color); }

/* Toasts */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 400px;
}

.toast {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: toastSlide 0.3s ease;
}

.toast.success i { color: var(--success-color); }
.toast.error i { color: var(--danger-color); }

@keyframes toastSlide {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
