/* Canarytokens Custom Styles */

/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

.navbar-brand i {
    color: var(--warning-color);
}

/* Stats Cards */
.stats-card {
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s ease-in-out;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stats-card .card-title {
    font-size: 2rem;
    font-weight: 600;
}

/* Token ID Display */
.token-id {
    font-family: 'Courier New', monospace;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.token-id-full {
    display: inline-block;
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    word-break: break-all;
}

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Card Enhancements */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
}

/* Buttons */
.btn {
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Alert Enhancements */
.alert {
    border-left: 4px solid;
}

.alert-warning {
    border-left-color: var(--warning-color);
}

.alert-info {
    border-left-color: var(--primary-color);
}

.alert-danger {
    border-left-color: var(--danger-color);
}

/* Form Enhancements */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-select,
.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: all 0.2s;
}

.form-select:focus,
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Code Blocks */
pre {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    max-height: 400px;
    overflow-y: auto;
}

code {
    color: #d63384;
}

/* Empty State */
.text-center .display-1,
.text-center .display-4 {
    opacity: 0.3;
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid #e9ecef;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 2px solid #e9ecef;
    background-color: #f8f9fa;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

/* List Group */
.list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item-action:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stats-card {
        margin-bottom: 1rem;
    }

    .card-title {
        font-size: 1.5rem !important;
    }

    .token-id {
        font-size: 0.75rem;
    }

    .table {
        font-size: 0.875rem;
    }
}

/* Loading States */
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Copy Button Feedback */
.btn-outline-secondary:active {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

/* Utility Classes */
.font-monospace {
    font-family: 'Courier New', Courier, monospace;
}

.cursor-pointer {
    cursor: pointer;
}

/* Animation for alerts */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert {
    animation: slideIn 0.3s ease-out;
}

/* Status Indicators */
.text-success i,
.text-danger i,
.text-warning i {
    margin-right: 4px;
}

/* Table Actions */
.table td:last-child {
    white-space: nowrap;
}
