/* Custom Styles for WLink */

:root {
    --primary-color: #25D366;
    --secondary-color: #128C7E;
    --dark-color: #075E54;
    --light-color: #DCF8C6;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.bg-primary {
    background-color: var(--secondary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: var(--light-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: bold;
}

.stat-card {
    border-left: 4px solid var(--primary-color);
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card h3 {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.stat-card p {
    color: #6c757d;
    margin-bottom: 0;
}

.table-actions a {
    margin-right: 0.5rem;
}

.qr-code-container {
    text-align: center;
    padding: 1rem;
}

.qr-code-container img {
    max-width: 100%;
    height: auto;
}

.link-card {
    transition: transform 0.2s;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.copy-btn {
    cursor: pointer;
}

.form-label {
    font-weight: 500;
}

.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    max-width: 450px;
    width: 100%;
}

.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
    color: white;
    padding: 4rem 0;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }
}

/* DataTables Custom Styling */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #000 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: white !important;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 2rem;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
}
