/* Modern CSS for DA-PA Checker Application */

:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --success-color: #4cc9f0;
    --info-color: #4895ef;
    --warning-color: #f72585;
    --danger-color: #ff4d6d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f7fa;
    color: var(--gray-800);
    line-height: 1.6;
}

/* Custom Card Styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid var(--gray-200);
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Custom Button Styling */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Form Controls */
.form-control, .form-select {
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

/* Table Styling */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    font-weight: 500;
    color: var(--gray-700);
    border-top: none;
    border-bottom: 2px solid var(--gray-300);
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
}

.table-hover tbody tr:hover {
    background-color: var(--gray-100);
}

.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

/* Navbar Styling */
.navbar {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    padding: 0.75rem 2rem;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--gray-900);
}

/* Result styling */
.result-card {
    transition: transform 0.3s ease;
    will-change: transform;
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.result-domain {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gray-800);
}

.result-metrics {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 1rem;
}

.metric {
    text-align: center;
    padding: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 80px;
    height: 80px;
    margin: 2rem auto;
    position: relative;
}

.loading-spinner:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid var(--primary-color);
    border-color: var(--primary-color) transparent var(--primary-color) transparent;
    animation: loading-spinner 1.2s linear infinite;
}

@keyframes loading-spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Custom Alert styling */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-dismissible .btn-close {
    padding: 1.25rem;
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
    border-radius: 6px;
}

/* Pagination */
.pagination {
    margin-bottom: 0;
}

.page-item:first-child .page-link {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.page-item:last-child .page-link {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.page-link {
    color: var(--primary-color);
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border: 1px solid var(--gray-300);
}

.page-link:hover {
    background-color: var(--gray-100);
    color: var(--secondary-color);
    border-color: var(--gray-300);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Stats cards */
.stats-card {
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.footer {
    background-color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--gray-200);
}

/* Modal customizations */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

/* Toast messages */
.toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toast-header {
    border-bottom: 1px solid var(--gray-200);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.375rem 1rem;
    }
    
    .stats-value {
        font-size: 1.5rem;
    }
    
    .metric-value {
        font-size: 1.25rem;
    }
}

/* Status colors for backlinks */
.backlink-active {
    color: #2ecc71;
}

.backlink-broken {
    color: #e74c3c;
}

.backlink-not-checked {
    color: #f39c12;
}

/* Custom tooltip */
.custom-tooltip {
    position: relative;
    display: inline-block;
}

.custom-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--gray-800);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Customizations for forms */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.action-button button {
    width: 100%;
    min-width: 40px;
}

.table th, .table td {
    vertical-align: middle;
}

/* Kırmızı kutu içindeki boşluğu kaldır */
.container-fluid.py-3.px-4 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

/* Sayfa başlığı üstündeki kırmızı işareti kaldır */
.container-fluid:before, 
.container-fluid:after,
.row:before,
.row:after {
    display: none !important;
    content: none !important;
} 