/* ==========================================================================
   Global Styles
   ========================================================================== */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #f4f4f4;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   Header Styles (header.php)
   ========================================================================== */
header {
    width: 100%;
    z-index: 1000;
}

.black-bar {
    width: 100%;
    background-color: #000;
    height: 90px; /* Increased to give more room */
    display: flex;
    justify-content: center;
    align-items: center;
}

.black-bar img {
    width: 85%;
    height: auto;
    max-height: 65px;
    object-fit: contain;
    margin: 11.34px 0; /* 3mm top and bottom margin */
    cursor: pointer;
    transition: transform 0.2s ease;
}

.black-bar img:hover {
    transform: scale(1.05);
}

.policy-id {
    margin: 11.34px 0 11.34px 0; /* 3mm from top and bottom */
    padding: 0 15px;
    color: #333;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
}

.policy-value {
    display: inline;
    font-weight: bold;
}

/* ==========================================================================
   Insurance Page Styles (insurance.php)
   ========================================================================== */
.emergency-text {
    margin: 82px auto 38px;  /* Top: after header, Bottom: 1cm space */
    font-size: 48px;
    font-weight: 900;
    color: black;
    max-width: 90%;
    line-height: 1.4;
}

.circle-container {
    display: flex;
    justify-content: center;
    margin-top: 38px;  /* Added 1cm (38px) margin */
    gap: 40px;
}

.circle {
    width: 30vw;
    height: 30vw;
    max-width: 250px;
    max-height: 250px;
    min-width: 200px;
    min-height: 200px;
    background-color: #007BFF;
    color: white;
    font-size: 50px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    padding: 20px;
    box-sizing: border-box;
    word-break: break-word;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.circle:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* ==========================================================================
   Policy Page Styles (policy.php)
   ========================================================================== */
.policy-container {
    width: 90%;
    max-width: 750px;
    margin: 20px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.policy-content {
    text-align: left;
    margin-top: 20px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Card flip container */
.card-flip-container {
    width: 100%;
    height: 500px;
    perspective: 1000px;
    position: relative;
    margin: 0 auto;
}

.card-flipper {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.card-flipper.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.card-back {
    transform: rotateY(0deg);
    z-index: 2;
}

.card-front {
    transform: rotateY(180deg);
}

.card-front img, .card-back img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    -webkit-user-select: none;
    user-select: none;
}

.card-front .shortcode-image {
    width: 300px !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: contain !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.card-front img:not(.shortcode-image) {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.reveal-card {
    text-align: center;
    position: relative;
    margin: 20px 0 40px 0;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.reveal-card h2 {
    text-align: center;
    margin-bottom: 5px;
    font-size: 3em;
}

.tap-instruction {
    text-align: center;
    font-size: 1.1em;
    color: #666;
    margin: 0 0 20px 0;
}

.review-section {
    text-align: center;
    width: 90%;
    max-width: 750px;
    margin: 30px auto;
    padding: 20px;
    clear: both;
}

.review-title {
    color: #333;
    margin-bottom: 15px;
}

.review-button {
    display: inline-block;
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.star {
    color: #ffd700;
    font-size: 24px;
    margin: 0 2px;
}

/* Button styles */
.btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 16px;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #0056b3;
}

/* Password form styles */
.setup-form {
    max-width: 400px;
    margin: 0 auto;
}

.setup-option input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

.message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#password-section {
    margin-top: 30px;
}

.forgot-password {
    text-align: center;
    margin: 15px 0;
}

.forgot-password a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.text-center {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

/* Reset Password Section Styles */
.reset-password-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Secondary Button Styles */
.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Integration styles */
.integration-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.integration-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.integration-info {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-left: 4px solid #007bff;
    border-radius: 4px;
    text-align: center;
}

.integration-info p {
    margin: 0 0 10px 0;
    font-weight: bold;
    width: 90%;
    margin: 15px auto;
}

.integration-info ul {
    margin: 0;
    padding-left: 20px;
}

.integration-info code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    color: #dc3545;
    font-family: monospace;
}

.checkbox-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.checkbox-group input[type="radio"] {
    margin-right: 5px;
}

.integration-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.integration-section h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
}

/* ELIPSE Integration Styles */
.field-help {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0 15px 0;
}

.api-url {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin: 15px 0;
}

.api-url code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    color: #0066cc;
    font-family: monospace;
}

.shortcodes-info {
    margin-top: 25px;
    padding: 15px;
    background: #fff;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.shortcodes-info h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.shortcodes-info ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

.shortcodes-info li {
    margin-bottom: 8px;
}

.shortcodes-info code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    color: #dc3545;
    font-family: monospace;
}

.shortcode-note {
    margin-top: 15px;
    color: #666;
    font-style: italic;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 5px;
}

.radio-option input[type="radio"] {
    margin: 0;
}

.radio-option label {
    margin: 0;
    font-weight: normal;
}

/* Shortcode image styles */
.shortcode-image {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Buy Cards Section */
.buy-cards-section {
    text-align: center;
    padding: 20px 0;
}

.buy-cards-btn {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 12px 24px;
    font-size: 1.1em;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.buy-cards-btn:hover {
    background-color: #218838;
    color: white;
    text-decoration: none;
}

/* ==========================================================================
   Login Page Styles (index.php)
   ========================================================================== */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.password-box {
    margin: 57px auto 0;  /* 1.5cm from header, centered */
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: calc(100% - 40px); /* Account for body padding if any */
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .password-box {
        width: 90%;
        max-width: 500px;
        padding: 40px;
    }
}

.password-box h1 {
    margin: 0 0 20px 0;
    color: #333;
}

.password-box input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.password-box button {
    padding: 15px 30px;
    margin-top: 20px;
    font-size: 18px;
    cursor: pointer;
    border: none;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.password-box button:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header Mobile Styles */
    .black-bar {
        width: 100%;
        height: 80px; /* Slightly smaller on mobile */
    }
    .black-bar img {
        width: 95%;
        max-height: 55px;
        margin: 11.34px 0; /* Keep same margin on mobile */
    }
    .policy-id {
        font-size: 20px;
        padding: 0 12px;
    }

    /* Insurance Page Mobile Styles */
    .emergency-text {
        font-size: 36px;
        margin: 70px auto 30px;
    }
    .circle {
        width: 40vw;
        height: 40vw;
        min-width: 180px;
        min-height: 180px;
        font-size: 43px;
    }

    /* Login Page Mobile Styles */
    .password-box {
        width: 90%;
        margin-top: 47px; /* Slightly less on mobile */
        padding: 30px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet Specific Styles */
    .circle {
        width: 35vw;
        height: 35vw;
        font-size: 46px;
    }
}

@media (max-width: 768px) {
    .review-section {
        padding: 15px;
    }
    .review-title {
        font-size: 20px;
    }
    .star {
        font-size: min(8rem, 12vw) !important;
    }
}

@media (max-width: 768px) {
    .reveal-card {
        margin-top: 30px;
        padding: 0;
        width: 100%;
    }
    .reveal-card img {
        width: 90% !important;
        max-width: none !important;
    }
    .policy-container {
        width: 95%;
        margin: 15px auto;
        padding: 20px;
    }
    .reveal-card h2 {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
}

/* Celebration Effects */
.firework {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.firework-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: explode 1s ease-out forwards;
    background: gold;
    box-shadow: 0 0 10px gold;
}

@keyframes explode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0.1);
        opacity: 0;
    }
}

/* Hidden trigger area */
.secret-trigger {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 75.6px; /* 2cm */
    height: 75.6px; /* 2cm */
    z-index: 9999;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

/* Glitch effect */
.glitch-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    display: none;
    mix-blend-mode: difference;
}

.glitch-active {
    display: block;
    animation: glitch-fade 1.3s forwards, shake 0.05s infinite linear;
}

@keyframes glitch-fade {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Base interference lines */
.glitch-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: scan 0.5s linear infinite;
}

/* Color distortion layer */
.glitch-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 0, 0, 0.2),
        rgba(0, 255, 0, 0.2),
        rgba(0, 0, 255, 0.2)
    );
    mix-blend-mode: screen;
    animation: colorshift 0.3s steps(2) infinite;
}

/* Random horizontal lines */
.glitch-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

.glitch-lines.active {
    display: block;
}

.glitch-lines::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.8);
    animation: randomLine 0.2s infinite;
}

.glitch-lines::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.8);
    animation: randomLine2 0.15s infinite;
}

/* Vertical tear effect */
.glitch-tear {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    display: none;
    overflow: hidden;
}

.glitch-tear.active {
    display: block;
}

.glitch-tear::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    animation: tearEffect 0.4s steps(1) infinite;
}

@keyframes tearEffect {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-5px, 0) skewX(-5deg);
        clip-path: polygon(0 0, 30% 0, 30% 100%, 0 100%);
    }
    50% {
        transform: translate(5px, 0) skewX(5deg);
        clip-path: polygon(70% 0, 100% 0, 100% 100%, 70% 100%);
    }
    75% {
        transform: translate(-3px, 0) skewX(-3deg);
        clip-path: polygon(40% 0, 60% 0, 60% 100%, 40% 100%);
    }
}

@keyframes randomLine {
    0% {
        top: 100%;
        opacity: 0.5;
    }
    100% {
        top: 0;
        opacity: 0.8;
    }
}

@keyframes randomLine2 {
    0% {
        top: 0;
        opacity: 0.8;
    }
    100% {
        top: 100%;
        opacity: 0.5;
    }
}

@keyframes shake {
    0% {
        transform: translate(0, 0) skew(0deg);
    }
    25% {
        transform: translate(-2px, 1px) skew(1deg);
    }
    50% {
        transform: translate(2px, -1px) skew(-1deg);
    }
    75% {
        transform: translate(-1px, 2px) skew(0.5deg);
    }
    100% {
        transform: translate(1px, -2px) skew(-0.5deg);
    }
}

@keyframes scan {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(20px);
    }
}

@keyframes colorshift {
    0% {
        opacity: 0.8;
        transform: translate(2px, 2px);
    }
    50% {
        opacity: 0.6;
        transform: translate(-2px, -2px);
    }
    100% {
        opacity: 0.8;
        transform: translate(0, 0);
    }
}

/* Apply the effect to the entire page when active */
body.interference {
    animation: interference 0.05s steps(2) infinite;
}

@keyframes interference {
    0% {
        transform: translate(0, 0) skew(0deg);
    }
    25% {
        transform: translate(-1px, 1px) skew(0.5deg);
    }
    75% {
        transform: translate(1px, -1px) skew(-0.5deg);
    }
}

/* Notification Styles */
.notification {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px 40px 15px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    position: relative;
    animation: slideIn 0.3s ease-out;
    text-align: left;
    width: 100%;
}

.notification a {
    color: #533f03;
    text-decoration: none;
    word-break: break-all;
}

.notification a:hover {
    color: #000;
    text-decoration: none;
}

.notification:last-child {
    margin-bottom: 20px;
}

.dismiss-notification {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    color: #856404;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.dismiss-notification:hover {
    color: #533f03;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Admin Dashboard Notification Styles */
.notification-form textarea {
    width: 100%;
    min-height: 80px;
    margin-bottom: 5px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.char-counter {
    text-align: right;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* Admin Dashboard Styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.notification-form {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.notifications-list {
    margin-top: 30px;
}

.notifications-list h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* Token Display Styles */
.token-display {
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-btn {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
    margin-left: 10px;
}

.remove-btn:hover {
    color: #cc0000;
}

.token-status {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.token-status.active {
    background-color: #4CAF50;
    color: white;
}

.token-display > div {
    display: flex;
    align-items: center;
}

.token-status-message {
    background-color: #f8fff8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #4CAF50;
    font-weight: 500;
    padding: 10px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
}

.status-icon {
    color: #4CAF50;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

.token-text {
    flex-grow: 1;
    word-break: break-all;
}

.remove-token-form {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.remove-btn {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 4px;
    line-height: 1;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    color: #cc0000;
    background-color: rgba(255, 0, 0, 0.1);
}

.premium-section {
    position: relative;
}

.premium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 100;
}

.premium-overlay h3 {
    color: white;
    margin-bottom: 15px;
}

.upgrade-button {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.upgrade-button:hover {
    background: #0056b3;
}

.locked-section {
    background-color: #dfdfdf;
    opacity: 0.9;
    border: 1px solid #eee;
}

.notification {
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.notification-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0 5px;
    font-size: 20px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Add margin to the message to prevent overlap with close button */
.notification > :first-child {
    margin-right: 30px;
}

.password-override-table {
    width: 90%;
    margin: 0 auto;
    border-collapse: collapse;
}

.password-override-table td {
    padding: 10px;
    text-align: center;
}

.password-override-table input {
    width: 90%;
    margin: 5px auto;
}

.password-override-table label {
    display: block;
    text-align: center;
    margin-bottom: 5px;
}

.shortcode-list {
    width: 90%;
    margin: 20px auto;
    text-align: center;
}

.shortcode-list ul {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

/* Update existing setup-option styles */
.setup-option {
    margin-bottom: 20px;
    position: relative;
}

.setup-option small {
    display: block;
    color: #666;
    margin-top: 5px;
}

.setup-option input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

/* Manual URL input section styles */
.manual-url-section {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.manual-url-section input[type="url"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

.manual-url-section input[type="url"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,.25);
}

/* Form controls and help text styles */
.form-text {
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
    color: #6c757d;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Added/Updated CSS for token and policy status messages */
.token-status-message,
.policy-status-message {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.token-status-message .status-icon,
.policy-status-message .status-icon {
    color: #4caf50;
    font-weight: bold;
    margin-right: 8px;
}

.policy-status-message:not(.active) {
    background-color: #ffebee;
    border-color: #ffcdd2;
}

.policy-status-message:not(.active) .status-icon {
    color: #f44336;
}

.token-text,
.status-text {
    flex-grow: 1;
    color: #2e7d32;
}

.policy-status-message:not(.active) .status-text {
    color: #c62828;
}

.remove-token-form {
    margin-left: 10px;
}

.remove-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
}

.remove-btn:hover {
    color: #d32f2f;
}