/* ============================================
   HostingDomainManager - Soft Minimal Design
   ============================================ */

:root {
    --primary-color: #4a5568;
    --primary-dark: #2d3748;
    --secondary-color: #718096;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #f56565;
    --dark-color: #1a202c;
    --light-color: #f7fafc;
    --border-color: #e2e8f0;
    --text-color: #2d3748;
    --text-light: #718096;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f7fafc;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 0;
    padding-bottom: 20px;
    margin: 0;
}

/* ============================================
   Login Page - Soft Design
   ============================================ */

body.login-page {
    background: #f7fafc;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body.login-page form {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.login-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f7fafc;
    position: relative;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    margin-bottom: 15px;
}

.login-header .logo-image {
    max-width: 320px;
    max-height: 320px;
    width: auto;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-header .logo i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.login-header .logo h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    margin-top: 10px;
}

.login-header .subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 5px;
}

.alert-box {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-box.error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #fc8181;
}

.alert-box i {
    font-size: 18px;
}

.login-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
    box-sizing: border-box;
    display: block;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: var(--primary-dark);
}

.btn-login:active {
    transform: translateY(1px);
}

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 12px;
}

/* ============================================
   Main Layout
   ============================================ */

.body-content {
    padding: 20px 15px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Navbar - Soft Design (Login ile uyumlu) */
.navbar {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.navbar-light {
    background: #ffffff !important;
}

.navbar-brand {
    font-weight: 600;
    color: var(--primary-color) !important;
    font-size: 18px;
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    color: var(--primary-dark) !important;
    opacity: 0.9;
}

.navbar-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 16px !important;
    border-radius: 6px;
    margin: 0 4px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: #f7fafc;
}

.navbar-toggler {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 8px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2845, 55, 72, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 8px 0;
    margin-top: 8px;
}

.dropdown-item {
    padding: 8px 16px;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f7fafc;
    color: var(--primary-color);
}

.dropdown-item i {
    margin-right: 8px;
    width: 16px;
}

/* ============================================
   Cards - Soft Minimal Design
   ============================================ */

.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
    padding: 15px 20px;
    background: #f7fafc;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.card-body {
    padding: 20px;
}

/* Stat Cards - Soft Gray Tones */
.card.text-white {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.card.text-white.bg-primary {
    background: #4a5568 !important;
    color: #ffffff;
}

.card.text-white.bg-success {
    background: #48bb78 !important;
    color: #ffffff;
}

.card.text-white.bg-warning {
    background: #ed8936 !important;
    color: #ffffff;
}

.card.text-white.bg-info {
    background: #4299e1 !important;
    color: #ffffff;
}

.card.text-white .card-body {
    padding: 20px;
}

.card.text-white h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 10px 0 0 0;
}

.card.text-white h5 {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* ============================================
   Buttons - Soft Design
   ============================================ */

.btn {
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-success {
    background: #48bb78;
    color: white;
    border-color: #48bb78;
}

.btn-success:hover {
    background: #38a169;
    border-color: #38a169;
}

.btn-secondary {
    background: #718096;
    color: white;
    border-color: #718096;
}

.btn-secondary:hover {
    background: #4a5568;
    border-color: #4a5568;
}

.btn-danger {
    background: #f56565;
    color: white;
    border-color: #f56565;
}

.btn-danger:hover {
    background: #e53e3e;
    border-color: #e53e3e;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

/* ============================================
   Tables - Soft Design
   ============================================ */

.table {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0;
    background: #ffffff;
}

.table thead {
    background: #f7fafc;
}

.table th {
    font-weight: 600;
    border: none;
    padding: 12px;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 12px;
    vertical-align: middle;
    border-color: var(--border-color);
}

.table-striped tbody tr:nth-of-type(odd) {
    background: #f7fafc;
}

.table-hover tbody tr:hover {
    background: #edf2f7;
}

.table-bordered {
    border: 1px solid var(--border-color);
}

/* ============================================
   Forms - Soft Design
   ============================================ */

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 15px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

/* ============================================
   Modals - Soft Design
   ============================================ */

.modal-content {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-radius: 8px 8px 0 0;
    padding: 20px;
    background: #f7fafc;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.modal-body {
    padding: 24px;
    background: #ffffff;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 20px;
    background: #f7fafc;
}

/* ============================================
   Badges - Soft Design
   ============================================ */

.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
    border-radius: 4px;
}

.bg-success {
    background: #48bb78 !important;
}

.bg-secondary {
    background: #718096 !important;
}

.bg-primary {
    background: var(--primary-color) !important;
}

.bg-warning {
    background: #ed8936 !important;
}

.bg-info {
    background: #4299e1 !important;
}

.bg-danger {
    background: #f56565 !important;
}

/* ============================================
   Map Styles
   ============================================ */

#customerMap {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.leaflet-container {
    border-radius: 8px;
    z-index: 1;
}

.leaflet-popup-content-wrapper {
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.leaflet-popup-content {
    margin: 12px;
    font-family: inherit;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .body-content {
        padding: 15px 10px;
    }

    .card-body {
        padding: 15px;
    }

    .table {
        font-size: 14px;
    }

    .table th,
    .table td {
        padding: 8px;
    }

    .login-box {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .login-box {
        padding: 24px 16px;
    }

    .login-header .logo h2 {
        font-size: 20px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* ============================================
   Home Page - Hero Section
   ============================================ */

.home-hero {
    background: #ffffff;
    border-radius: 12px;
    padding: 60px 40px;
    margin: 40px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 30px;
}

.hero-logo-image {
    max-width: 180px;
    max-height: 180px;
    width: auto;
    height: auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-actions {
    margin-top: 30px;
}

.hero-btn {
    padding: 14px 32px;
    font-size: 18px;
    border-radius: 8px;
}

.hero-btn i {
    margin-right: 8px;
}

/* ============================================
   Features Section
   ============================================ */

.features-section {
    margin: 60px 0;
}

.feature-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: #f7fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 36px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   Footer
   ============================================ */

footer {
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    background: #ffffff;
}

footer p {
    margin: 0;
    font-size: 14px;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.page-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.page-header h2 i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* ============================================
   Stats Grid (Dashboard Cards)
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 28px;
    color: #ffffff;
}

.stat-icon.bg-primary {
    background: var(--primary-color);
}

.stat-icon.bg-success {
    background: var(--success-color);
}

.stat-icon.bg-warning {
    background: var(--warning-color);
}

.stat-icon.bg-info {
    background: #4299e1;
}

.stat-icon.bg-danger {
    background: var(--danger-color);
}

.stat-content {
    flex: 1;
}

.stat-content h5 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0 0 8px 0;
    font-weight: 500;
}

.stat-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

/* ============================================
   Content Section & Cards
   ============================================ */

.content-section {
    margin-bottom: 30px;
}

.content-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 20px;
}

.content-card .card-header {
    background: #f7fafc;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.content-card .card-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.content-card .card-header h5 i {
    margin-right: 8px;
    color: var(--primary-color);
}

.content-card .card-body {
    padding: 20px;
}

/* ============================================
   Tables
   ============================================ */

.table {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: #f7fafc;
}

.table thead th {
    border-bottom: 2px solid var(--border-color);
    color: var(--dark-color);
    font-weight: 600;
    padding: 12px 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.table tbody tr:hover {
    background: #f7fafc;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-success {
    background: var(--success-color);
    color: #ffffff;
}

.btn-success:hover {
    background: #38a169;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-warning {
    background: var(--warning-color);
    color: #ffffff;
}

.btn-warning:hover {
    background: #dd6b20;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-danger {
    background: var(--danger-color);
    color: #ffffff;
}

.btn-danger:hover {
    background: #e53e3e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-info {
    background: #4299e1;
    color: #ffffff;
}

.btn-info:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* ============================================
   Alerts
   ============================================ */

.alert {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-danger {
    background: #fed7d7;
    border-color: #fc8181;
    color: #742a2a;
}

.alert-info {
    background: #bee3f8;
    border-color: #90cdf4;
    color: #2c5282;
}

.alert-success {
    background: #c6f6d5;
    border-color: #9ae6b4;
    color: #22543d;
}

.alert-warning {
    background: #feebc8;
    border-color: #fbd38d;
    color: #744210;
}

/* ============================================
   Badges
   ============================================ */

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-primary {
    background: var(--primary-color) !important;
    color: #ffffff;
}

.bg-success {
    background: var(--success-color) !important;
    color: #ffffff;
}

.bg-warning {
    background: var(--warning-color) !important;
    color: #ffffff;
}

.bg-danger {
    background: var(--danger-color) !important;
    color: #ffffff;
}

.bg-info {
    background: #4299e1 !important;
    color: #ffffff;
}

.bg-secondary {
    background: var(--secondary-color) !important;
    color: #ffffff;
}

/* ============================================
   Progress Bars
   ============================================ */

.progress {
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    height: 25px;
}

.progress-bar {
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    transition: width 0.3s ease;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .page-header h2 {
        font-size: 1.5rem;
    }

    .table {
        font-size: 0.875rem;
    }

    .table thead th,
    .table tbody td {
        padding: 8px 10px;
    }
}

/* ============================================
   Utilities
   ============================================ */

.text-primary { color: var(--primary-color) !important; }
.text-success { color: #48bb78 !important; }
.text-warning { color: #ed8936 !important; }
.text-danger { color: #f56565 !important; }
.text-muted { color: var(--text-light) !important; }

/* Validation */
.field-validation-error {
    color: #f56565;
    font-size: 0.875rem;
}

.input-validation-error {
    border-color: #f56565 !important;
}

/* Dropdown */
.dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.dropdown-item {
    padding: 8px 16px;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: #f7fafc;
}

/* Alerts */
.alert {
    border-radius: 6px;
    border: 1px solid;
}

.alert-danger {
    background: #fed7d7;
    border-color: #fc8181;
    color: #c53030;
}

.alert-info {
    background: #bee3f8;
    border-color: #90cdf4;
    color: #2c5282;
}

.alert-success {
    background: #c6f6d5;
    border-color: #9ae6b4;
    color: #22543d;
}
