/* Hesaplaco.com - Modern Sidebar Layout 2025 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Info Section Tables */
.info-section .table-container {
    margin: 1.5rem 0;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-section .info-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

.info-section .info-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.info-section .info-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-section .info-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.info-section .info-table tbody tr:hover {
    background: #f9fafb;
    transition: background 0.2s ease;
}

.info-section .info-table tbody tr:last-child td {
    border-bottom: none;
}

:root {
    /* Modern Color Palette */
    --primary: #667eea;
    --primary-dark: #5568d3;
    --primary-light: #8b9cff;
    --secondary: #764ba2;
    --accent: #f5576c;
    --success: #00d4aa;
    --warning: #ffa500;
    --info: #4facfe;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Sidebar */
    --sidebar-width: 280px;
    --sidebar-bg: var(--white);
    --sidebar-shadow: 0 0 30px rgba(0, 0, 0, 0.08);

    /* Header */
    --header-height: 70px;
    --header-bg: var(--white);
    --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-overlay: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
}

/* ===== BASE RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    overflow-x: hidden;
}

body.sidebar-open {
    overflow: hidden;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    z-index: var(--z-fixed);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1.5rem;
    max-width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.sidebar-toggle:hover {
    background: var(--gray-100);
}

.sidebar-toggle span {
    width: 100%;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* Mobile'da hamburger göster */
@media (max-width: 992px) {
    .sidebar-toggle {
        display: flex;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--gray-900);
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-center {
    flex: 1;
    max-width: 600px;
    margin: 0 2rem;
}

.search-header {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 0.5rem 1rem;
    transition: all var(--transition-base);
}

.search-header:focus-within {
    background: var(--white);
    box-shadow: var(--shadow-md);
    outline: 2px solid var(--primary);
}

.search-header input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--gray-800);
    outline: none;
}

.search-header input::placeholder {
    color: var(--gray-400);
}

.search-header button {
    background: transparent;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.25rem;
    transition: color var(--transition-base);
}

.search-header button:hover {
    color: var(--primary);
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: 1px solid var(--gray-200);
}

.search-results.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--gray-800);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--gray-50);
    padding-left: 1.5rem;
}

.search-result-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.search-result-category {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--gray-500);
}

.search-no-results-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.header-center {
    position: relative;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-btn {
    padding: 0.625rem 1.25rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--sidebar-bg);
    box-shadow: none;
    border-right: 1px solid var(--gray-200);
    z-index: 200;
    transition: left var(--transition-base);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Desktop'ta sidebar her zaman açık */
@media (min-width: 993px) {
    .sidebar {
        left: 0 !important;
    }
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
}

.sidebar-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-800);
}

.sidebar-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.sidebar-close:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

/* Mobile'da close button göster */
@media (max-width: 992px) {
    .sidebar-close {
        display: flex;
    }
}

.sidebar-content {
    padding: 0.5rem 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Sidebar Actions (Anasayfa ve Siteye Ekle Butonları) */
.sidebar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    flex-shrink: 0;
}

.sidebar-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.65rem;
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.sidebar-action-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sidebar-action-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-home-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.sidebar-home-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.sidebar-home-btn svg {
    stroke: currentColor;
}

.sidebar-install-btn {
    color: var(--white);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
}

.sidebar-install-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    filter: brightness(1.05);
}

.sidebar-install-btn svg {
    stroke: currentColor;
}

.sidebar-category {
    margin-bottom: 0.25rem;
}

.sidebar-category-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-base);
    position: relative;
    border-radius: var(--radius-sm);
    margin: 0 0.5rem;
    width: calc(100% - 1rem);
}

.sidebar-category-header:hover {
    background: var(--gray-100);
}

.sidebar-category.active .sidebar-category-header {
    background: var(--gray-100);
    color: var(--primary);
}

.sidebar-category.viewing .sidebar-category-header {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    border-left: 3px solid var(--primary);
}

.sidebar-category-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sidebar-category-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.sidebar-category-count {
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
}

.sidebar-category-arrow {
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.sidebar-category.active .sidebar-category-arrow {
    transform: rotate(180deg);
}

.sidebar-category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.sidebar-category.active .sidebar-category-content {
    max-height: 2000px;
}

.sidebar-tool-link {
    display: block;
    padding: 0.625rem 1.25rem 0.625rem 3.5rem;
    text-decoration: none;
    color: var(--gray-600);
    font-size: 0.825rem;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-tool-link:hover {
    background: var(--gray-50);
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 3.75rem;
}

.sidebar-tool-name {
    display: block;
}

/* Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    backdrop-filter: blur(2px);
    display: none;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Overlay sadece mobile'da göster */
@media (max-width: 992px) {
    .sidebar-overlay {
        display: block;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6rem 2rem 5rem;
    margin-top: var(--header-height);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.5rem;
    opacity: 0.95;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 1.15rem !important;
    opacity: 0.9 !important;
    margin-bottom: 0 !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== MAIN LAYOUT ===== */
.main-wrapper {
    min-height: calc(100vh - var(--header-height) - 300px);
    margin-left: 0;
    transition: margin-left var(--transition-base);
}

/* Desktop'ta main content sidebar kadar sağa kayar */
@media (min-width: 993px) {
    .main-wrapper {
        margin-left: var(--sidebar-width);
    }
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 3rem;
}

/* ===== CATEGORIES ===== */
.categories {
    display: grid;
    gap: 4rem;
}

.category {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    scroll-margin-top: calc(var(--header-height) + 2rem);
}

.category:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
}

.category-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

.category-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}

.category-count {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* ===== TOOLS GRID ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.tool-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-decoration: none;
    color: var(--gray-800);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.tool-card:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.tool-card:hover::before {
    transform: scaleY(1);
}

.tool-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.tool-name {
    font-weight: 700;
    font-size: 1.025rem;
    color: var(--gray-900);
    line-height: 1.5;
    letter-spacing: -0.2px;
}

.tool-arrow {
    color: var(--gray-400);
    transition: all var(--transition-base);
}

.tool-card:hover .tool-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

.tool-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== TOOL PAGE STYLES ===== */
.tool-page {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    margin-left: 0;
    padding: 0 1rem;
    transition: margin-left var(--transition-base);
}

/* Desktop'ta tool page de sidebar kadar sağa kayar */
@media (min-width: 993px) {
    .tool-page {
        margin-left: var(--sidebar-width);
    }
}

.breadcrumb {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.tool-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.tool-header h1 {
    font-size: 2.75rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--gray-900);
    letter-spacing: -1px;
}

.tool-header p {
    font-size: 1.25rem;
    color: var(--gray-600);
    font-weight: 500;
    line-height: 1.7;
}

.calculator-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    max-width: 900px;
    margin: 0 auto 3rem;
    position: relative;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.calculator-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--gray-800);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--gray-800);
    background: var(--white);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Checkbox Group Styling */
.form-group.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.form-group.checkbox-group input[type="checkbox"] {
    width: auto;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    margin: 0;
    accent-color: var(--primary);
}

.form-group.checkbox-group label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    flex: 1;
}

.btn-primary {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.result-box {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-label {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-value {
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    letter-spacing: -1px;
}

.info-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    max-width: 900px;
    margin: 0 auto 2rem;
}

.info-section h2 {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--gray-900);
}

.info-section h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.info-section p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.info-section ul,
.info-section ol {
    margin-left: 1.75rem;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
}

.info-section li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* ===== SIMILAR TOOLS SECTION ===== */
.similar-tools-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin: 3rem 0;
}

.similar-tools-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.similar-tools {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    max-width: 900px;
    margin: 0 auto 3rem;
}

.similar-tools h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.similar-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.similar-tool-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: #ffffff !important;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.similar-tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.similar-tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.similar-tool-card:hover::before {
    opacity: 1;
}

.similar-tool-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.25);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.similar-tool-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.similar-tool-card p {
    font-size: 0.875rem;
    opacity: 1;
    margin: 0 !important;
    line-height: 1.6;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Tüm child elementlerin beyaz olmasını garanti et */
.similar-tool-card *,
.similar-tool-card h1,
.similar-tool-card h2,
.similar-tool-card h3,
.similar-tool-card h4,
.similar-tool-card p,
.similar-tool-card span,
.similar-tool-card div {
    color: #ffffff !important;
}

.similar-tool-info {
    flex: 1;
}

.similar-tool-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.similar-tool-desc {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.4;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
    margin-left: 0;
    transition: margin-left var(--transition-base);
}

/* Desktop'ta footer da sidebar kadar sağa kayar */
@media (min-width: 993px) {
    .footer {
        margin-left: var(--sidebar-width);
    }
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.25rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: all var(--transition-base);
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .header-center {
        max-width: 400px;
        margin: 0 1.5rem;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 300px;
        left: -300px;
        box-shadow: var(--shadow-xl);
        border-right: none;
        height: 100vh;
        top: 0;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-content {
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header-center {
        display: none;
    }

    .main-wrapper {
        margin-left: 0 !important;
    }

    .tool-page {
        margin-left: 0 !important;
    }

    .hero {
        margin-left: 0 !important;
    }

    .main-content {
        padding: 3rem 2rem;
    }

    .hero {
        padding: 5rem 2rem 4rem;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .category {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .logo-text {
        display: none;
    }

    .header-right {
        display: none;
    }

    .hero {
        padding: 4rem 1.5rem 3rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .main-content {
        padding: 2.5rem 1.25rem;
    }

    .categories {
        gap: 2.5rem;
    }

    .category {
        padding: 1.75rem;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .calculator-card {
        padding: 2rem 1.5rem;
        padding-top: 3.5rem;
        /* Sorun Bildir butonu için üstte boşluk */
    }

    /* Sorun Bildir butonu mobilde daha küçük ve tepede */
    .form-corner-report-btn {
        top: 10px !important;
        right: 10px !important;
        padding: 0.35rem 0.7rem !important;
        font-size: 0.7rem !important;
    }

    .form-corner-report-btn span:last-child {
        display: none;
        /* Mobilde sadece emoji göster */
    }

    .breadcrumb {
        padding: 1rem 1rem;
        font-size: 0.85rem;
    }

    .tool-header {
        padding: 0 1rem;
    }

    .tool-header h1 {
        font-size: 2rem;
    }

    .result-value {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.875rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .category {
        padding: 1.25rem;
    }

    .category-title {
        font-size: 1.25rem;
    }

    .category-icon {
        font-size: 2rem;
    }

    .calculator-card {
        padding: 1.5rem 1rem;
    }

    .breadcrumb {
        padding: 0.75rem 0.75rem;
        font-size: 0.8rem;
    }

    .tool-header {
        padding: 0 0.75rem;
    }

    .tool-header h1 {
        font-size: 1.75rem;
    }

    .info-section {
        padding: 1.5rem 1rem;
    }

    /* Sidebar butonları mobilde daha kompakt */
    .sidebar-action-btn {
        font-size: 0.7rem;
        padding: 0.45rem 0.5rem;
        gap: 0.25rem;
    }

    .sidebar-action-btn svg {
        width: 14px;
        height: 14px;
    }

    .sidebar-actions {
        padding: 0.6rem;
        gap: 0.4rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category,
.tool-card {
    animation: fadeIn 0.5s ease-out;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}