/* PDKS Custom Styles */
:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --primary-color: #0d6efd;
    --sidebar-bg: #212529;
    --sidebar-text: #adb5bd;
    --sidebar-active: #0d6efd;
}

html, body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    background: var(--sidebar-bg);
    width: var(--sidebar-width);
    min-height: 100vh;
    transition: width 0.3s ease;
}

.sidebar-brand {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand h5 {
    color: white;
    margin: 0;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-section-title {
    color: var(--sidebar-text);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem 0.5rem;
    margin-top: 0.5rem;
}

.sidebar .nav-link {
    color: var(--sidebar-text);
    padding: 0.6rem 1rem;
    margin: 0.1rem 0.75rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar .nav-link.active {
    background: var(--sidebar-active);
    color: white;
}

.sidebar .nav-link i {
    font-size: 1.1rem;
    width: 24px;
    margin-right: 0.75rem;
}

/* Main Content Area */
.main-content {
    flex: 1;
    min-height: 100vh;
    background: #f8f9fa;
}

.top-navbar {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 0.75rem 1.5rem;
}

.content-wrapper {
    padding: 1.5rem;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
}

.card-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Button Styles */
.btn {
    font-weight: 500;
    border-radius: 0.375rem;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 0.375rem;
    border-color: #dee2e6;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.input-group-text {
    background: #f8f9fa;
    border-color: #dee2e6;
}

/* Pagination */
.pagination-sm .page-link {
    padding: 0.35rem 0.65rem;
}

/* Avatar */
.avatar {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Stats Cards */
.card.bg-primary, .card.bg-success, .card.bg-danger, .card.bg-warning {
    border: none;
}

/* Modal */
.modal {
    backdrop-filter: blur(2px);
}

.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0.375rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -100%;
        z-index: 1050;
        transition: left 0.3s ease;
    }

    .sidebar.show {
        left: 0;
    }

    .main-content {
        margin-left: 0 !important;
    }
}

/* Utilities */
.text-dark-50 {
    color: rgba(0,0,0,0.5) !important;
}

.text-white-50 {
    color: rgba(255,255,255,0.5) !important;
}

/* Loading Spinner */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Blazor Error UI */
#blazor-error-ui {
    background: #dc3545;
    color: white;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    display: none;
    left: 0;
    padding: 0.75rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1100;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.75rem;
    color: white;
    text-decoration: none;
}

#blazor-error-ui .reload {
    color: white;
    text-decoration: underline;
}

.blazor-error-boundary {
    background: #dc3545;
    padding: 1rem;
    color: white;
    border-radius: 0.375rem;
}

.blazor-error-boundary::after {
    content: "Bir hata olustu.";
}

/* Valid/Invalid Form States */
.valid.modified:not([type=checkbox]) {
    border-color: #198754;
}

.invalid {
    border-color: #dc3545;
}

.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Landing Page Styles */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* OTP Input */
.letter-spacing-2 {
    letter-spacing: 0.5em;
}
