/* HopLink - Bootstrap Orange Theme */

:root {
    /* Orange Color Palette */
    --bs-primary: #ff6b35;
    --bs-primary-rgb: 255, 107, 53;
    --bs-secondary: #ff8c42;
    --bs-warning: #ffa500;
    --bs-success: #28a745;
    --bs-danger: #dc3545;

    /* Custom Orange Shades */
    --orange-dark: #e85d2c;
    --orange-light: #ff9966;
    --orange-lighter: #ffb899;
}

/* Override Bootstrap Primary Color */
.bg-primary {
    background-color: var(--bs-primary) !important;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--orange-dark);
    border-color: var(--orange-dark);
}

.text-primary {
    color: var(--bs-primary) !important;
}

.border-primary {
    border-color: var(--bs-primary) !important;
}

/* Body */
body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    font-weight: 600;
}

/* Link Items */
.link-item {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: white;
    transition: all 0.2s;
}

.link-item:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 0.125rem 0.25rem rgba(255, 107, 53, 0.15);
}

.link-short-url {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.link-short-url:hover {
    color: var(--orange-dark);
    text-decoration: underline;
}

.link-original {
    color: #6c757d;
    font-size: 0.9rem;
    word-break: break-all;
}

/* Badges */
.badge-custom {
    background-color: var(--bs-warning);
    color: #000;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bs-primary);
    display: block;
}

.stat-card-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Toast Notifications */
.toast {
    border-left: 4px solid var(--bs-primary);
}

.toast-success {
    border-left-color: var(--bs-success);
}

.toast-error {
    border-left-color: var(--bs-danger);
}

/* Buttons */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Input Group */
.input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

/* Modal */
.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.modal-body {
    padding: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .link-item .btn-group {
        flex-wrap: wrap;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--orange-dark);
}

/* Loading Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}