:root {
    --bg-light: #ffffff;
    --text-light: #212529;
    --card-light: #ffffff;
    --link-light: #0d6efd;
    --warning-light: #dc3545;
    
    --bg-dark: #121212;
    --text-dark: #f8f9fa;
    --card-dark: #1e1e1e;
    --link-dark: #6ea8fe;
    --warning-dark: #ff6b6b;
}

[data-bs-theme="light"] {
    --bg-color: var(--bg-light);
    --text-color: var(--text-light);
    --card-color: var(--card-light);
    --link-color: var(--link-light);
    --warning-color: var(--warning-light);
}

[data-bs-theme="dark"] {
    --bg-color: var(--bg-dark);
    --text-color: var(--text-dark);
    --card-color: var(--card-dark);
    --link-color: var(--link-dark);
    --warning-color: var(--warning-dark);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

.card {
    background-color: var(--card-color);
    transition: background-color 0.3s;
    margin-bottom: 1rem;
}

.message-card {
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.time-left {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    padding: 0;
    border-radius: 0.25rem;
    display: block;
    color: #dc3545;
}

.time-left.warning {
    color: var(--warning-color);
    font-weight: bold;
}

.check-in-info {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.check-in-link {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

[data-bs-theme="dark"] .check-in-link {
    background-color: rgba(255, 255, 255, 0.05);
}

.check-in-link input {
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    width: 100%;
}

[data-bs-theme="dark"] .check-in-link input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.token-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.time-input-group {
    margin-bottom: 1rem;
}

.custom-period-inputs {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 0.25rem;
}

[data-bs-theme="dark"] .custom-period-inputs {
    background-color: rgba(255, 255, 255, 0.03);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.dropdown-menu {
    min-width: 200px;
}

/* Styles for the check-in link section based on the image */
.check-in-period {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-active-badge {
    background-color: #198754;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Redesigned check-in link container */
.check-in-link-container {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

[data-bs-theme="dark"] .check-in-link-container {
    background-color: #121212;
    color: #f8f9fa;
    border-color: #2c2c2c;
}

.check-in-link-label {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #6c757d;
}

[data-bs-theme="dark"] .check-in-link-label {
    color: #adb5bd;
}

.check-in-link-url {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.125);
    color: var(--text-color);
    width: 100%;
    font-family: monospace;
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
}

[data-bs-theme="dark"] .check-in-link-url {
    background-color: transparent;
    border: none;
    color: #f8f9fa;
}

.check-in-link-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Regenerate and disable buttons */
.btn-regenerate {
    background-color: #ffc107;
    color: #212529;
    transition: all 0.15s ease-in-out;
    border: none;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-regenerate:hover {
    background-color: #e0a800;
    color: #212529;
}

.btn-regenerate i {
    font-size: 0.75rem;
}

.btn-disable {
    background-color: #dc3545;
    color: #fff;
    transition: all 0.15s ease-in-out;
    border: none;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-disable:hover {
    background-color: #c82333;
    color: #fff;
}

.btn-disable i {
    font-size: 0.75rem;
}

/* Copy button styling */
.copy-btn {
    position: absolute;
    right: 0.5rem;
    background-color: transparent;
    border: none;
    color: #6c757d;
    transition: all 0.15s ease-in-out;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.copy-btn:hover {
    color: #212529;
}

[data-bs-theme="dark"] .copy-btn {
    color: #adb5bd;
}

[data-bs-theme="dark"] .copy-btn:hover {
    color: #f8f9fa;
}

/* Update card styles for dark theme */
[data-bs-theme="dark"] .card {
    background-color: var(--card-dark);
    border-color: #2c2c2c;
}

/* Update text colors for dark theme */
[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .card-subtitle {
    color: #adb5bd !important;
}

/* Update button styles for dark theme */
[data-bs-theme="dark"] .btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
    background-color: #0d6efd;
    color: #fff;
}

/* Update dropdown styles for dark theme */
[data-bs-theme="dark"] .dropdown-menu {
    background-color: #1e1e1e;
    border-color: #2c2c2c;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: #2c2c2c;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .dropdown-divider {
    border-top-color: #2c2c2c;
}

/* Form controls for dark theme */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #1e1e1e;
    border-color: #2c2c2c;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #1e1e1e;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    color: #f8f9fa;
}

/* Button styles for dark theme */
[data-bs-theme="dark"] .btn-success {
    background-color: #198754;
    border-color: #198754;
}

[data-bs-theme="dark"] .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: all 0.15s ease-in-out;
}

[data-bs-theme="dark"] .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

[data-bs-theme="dark"] .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    transition: all 0.15s ease-in-out;
}

[data-bs-theme="dark"] .btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

/* Generate link button - change to outline style */
.btn-generate-link {
    background-color: transparent;
    color: #0d6efd;
    border: 1px solid #0d6efd;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    transition: all 0.15s ease-in-out;
}

.btn-generate-link:hover {
    background-color: #0d6efd;
    color: white;
}

.btn-generate-link i {
    font-size: 0.75rem;
}

/* Check-in button */
.btn-check-in {
    background-color: #198754;
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
}

.btn-check-in:hover {
    background-color: #157347;
    color: white;
}

/* Modal styles for dark theme */
[data-bs-theme="dark"] .modal-content {
    background-color: #1e1e1e;
    border-color: #2c2c2c;
}

[data-bs-theme="dark"] .modal-header {
    border-bottom-color: #2c2c2c;
}

[data-bs-theme="dark"] .modal-footer {
    border-top-color: #2c2c2c;
}

/* Alert styles for dark theme */
[data-bs-theme="dark"] .alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

/* Custom styles for the message card to match the image */
.message-card {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .message-card {
    background-color: #1e1e1e;
}

.card-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Style for the Generate Check-in Link button */
.btn-outline-primary.btn-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Style for the Edit and Delete buttons */
.action-buttons .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* Style for the Check In dropdown */
.dropdown .btn-success {
    font-size: 0.9rem;
    padding: 0.375rem 0.75rem;
}

/* Adjust spacing in the card body */
.card-body {
    padding: 1.25rem;
}

/* Style for the message content */
.card-text {
    margin-bottom: 1rem;
    word-break: break-word;
}

/* Adjust the app container */
#app {
    max-width: 1200px;
    margin: 0 auto;
}

/* Style for the app title */
h1 {
    font-size: 2rem;
    font-weight: 600;
}

h1 i {
    margin-right: 0.5rem;
}

/* Ensure dropdown button has proper styling */
.dropdown .btn-check-in {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown .btn-check-in i:last-child {
    font-size: 0.75rem;
    margin-left: 0.25rem;
} 