/* iOS & Glassmorphism Theme for Apartman Yönetim Sistemi */

/* 1. Global Variables & Typography */
:root {
    --ios-bg: #F2F2F7; /* Apple System Gray 6 */
    --ios-card-bg: rgba(255, 255, 255, 0.85);
    --ios-header-bg: rgba(255, 255, 255, 0.75);
    --ios-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    --ios-border-radius: 20px;
    --ios-blue: #007AFF;
    --ios-green: #34C759;
    --ios-red: #FF3B30;
    --ios-yellow: #FFCC00;
    --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--ios-bg) !important;
    font-family: var(--font-stack) !important;
    color: #1c1c1e;
    -webkit-font-smoothing: antialiased;
}

/* 2. Glassmorphism Utilities */
.glass {
    background: var(--ios-card-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--ios-shadow);
}

.glass-dark {
    background: rgba(44, 44, 46, 0.8) !important;
    color: white;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* 3. Button Styles (iOS Style) */
.btn {
    border-radius: 12px !important;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: none;
    letter-spacing: -0.01em;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background-color: var(--ios-blue) !important;
    border-color: var(--ios-blue) !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3) !important;
}

.btn-success {
    background-color: var(--ios-green) !important;
    border-color: var(--ios-green) !important;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3) !important;
}

.btn-danger {
    background-color: var(--ios-red) !important;
    border-color: var(--ios-red) !important;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3) !important;
}

/* 4. Card Styling (Squircle & Clean) */
.card {
    border: none !important;
    border-radius: var(--ios-border-radius) !important;
    background: #FFFFFF !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.2s;
    overflow: hidden;
}

/* 5. Inputs & Forms */
.form-control, .form-select {
    background-color: #F2F2F7 !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    background-color: #FFFFFF !important;
    border-color: var(--ios-blue) !important;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1) !important;
}

/* 6. Sidebar & Navbar */
#sidebar-wrapper {
    background: rgba(255, 255, 255, 0.9) !important; /* Semi-transparent */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-right: 1px solid rgba(0,0,0,0.05);
}

.sidebar-heading {
    padding: 2rem 1.5rem;
    background: transparent !important;
}

.list-group-item {
    background: transparent !important;
    border: none !important;
    padding: 0.8rem 1.5rem !important;
    margin: 0.2rem 1rem !important;
    border-radius: 12px !important;
    color: #636366 !important; /* System Gray */
    font-weight: 500;
}

.list-group-item:hover, .list-group-item:focus {
    background-color: rgba(0, 122, 255, 0.1) !important;
    color: var(--ios-blue) !important;
}

.list-group-item i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
}

/* Navbar (Glass) */
nav.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: none !important;
}

/* 7. Tables */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: transparent;
    border-bottom: 2px solid #F2F2F7;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8E8E93;
}

/* 8. Badges */
.badge {
    padding: 0.5em 0.8em;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* 9. Animations */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: slideIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 10. Dashboard Hero Overrides (Make them glass) */
.dashboard-hero {
    background: linear-gradient(135deg, rgba(78, 84, 200, 0.9), rgba(143, 148, 251, 0.9)) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(78, 84, 200, 0.3) !important;
}

.quick-action-btn:hover {
    background: #FFFFFF !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
