body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #444;
    max-width: 65ch;
    padding: 2ch;
    margin: auto;
    background: #fff;
}

header {
    text-align: left;
    padding-top: 1em;
    padding-bottom: 1em;
    margin-bottom: 2em;
}

/* Left-align the logo */
header h1 {
    font-size: 1.8em;
    margin: 0;
    font-weight: 500;
    text-align: left;
}

/* Main content area and navigation */
main {
    text-align: left;
}

/* Main heading */
main h2 {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 0.9em;
    font-weight: 500;
    text-align: left;
}

/* Main navigation styling to match reference */
#main-nav {
    margin: 1em 0;
}

#main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.8em;
    flex-wrap: wrap;
}

#main-nav li {
    margin: 0;
}

#main-nav li span {
    color: #555;
    font-size: 0.9em;
}

#main-nav a {
    text-decoration: none;
    color: #6D49FF;
    font-size: 0.9em;
}

#main-nav a.upgrade-link {
    background-color: #6D49FF;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 500;
}

#main-nav a:hover {
    text-decoration: underline;
}

/* Container reset */
.container {
    display: block;
    max-width: 100%;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

header h1 a:hover {
    text-decoration: none;
}

h3 {
    font-size: 1.2em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 500;
}

a {
    color: #6D49FF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

nav {
    margin: 1.5em 0;
    text-align: center;
}

nav a {
    margin: 0 0.5em;
}

ul {
    padding-left: 2ch;
}

li {
    margin-bottom: 0.4em;
}

strong {
    font-weight: 600;
}

form {
    margin: 2em 0;
}

.form-group {
    margin-bottom: 1.5em;
}

.form-group label {
    display: block;
    margin-bottom: 0.5em;
}

.small-note {
    font-size: 0.85em;
    color: #666;
    margin-top: 0.3em;
    margin-bottom: 0.3em;
}

.custom-url {
    margin: 1em 0;
    width: 75%;
}

.custom-url label {
    display: block;
    margin-bottom: 0.5em;
}

.custom-url-input {
    display: flex;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 1em;
    background-color: white;
    box-sizing: border-box;
}

.url-prefix {
    padding: 0.5em;
    font-size: 1em;
    line-height: normal;
    background-color: #f5f5f5;
    color: #666;
    border-right: 1px solid #ddd;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.custom-url-input input[type="text"] {
    flex: 1;
    padding: 0.5em;
    font-size: 1em;
    line-height: normal;
    color: #444;
    border: none;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    box-sizing: border-box;
}

.custom-url-input input::placeholder {
    color: #999;
}

form input[type="text"]::placeholder,
form input[type="url"]::placeholder {
    color: #999;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="url"] {
    display: block;
    width: 75%;
    padding: 0.5em;
    font-size: 1em;
    line-height: normal;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1em;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: #444;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form input[type="url"]:focus {
    border-color: #6D49FF;
    outline: none;
}

form button[type="submit"] {
    padding: 0.5em 1em;
    font-size: 1em;
    background: #fff;
    border: 1px solid #6D49FF;
    color: #6D49FF;
    border-radius: 2px;
    cursor: pointer;
}

form button[type="submit"]:hover {
    background: #f6f9fe;
}

#short_url_container {
    margin: 1.5em 0;
    padding: 1em;
    border: 1px solid #eee;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.shortened-link-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    margin-top: 0.5em;
}

#short_url_container a {
    font-weight: 500;
    color: #333;
}

.info-message,
.success-message {
    margin: 0 0 0.5em 0;
    font-size: 0.9em;
}

.info-message {
    color: #555; /* Neutral, informative color */
}

.success-message {
    color: #28a745; /* Green for success */
}

/* Copy button for home page */
.copy-btn-home {
    margin-left: 10px;
    padding: 6px 12px;
    font-size: 0.9em;
    background-color: #e0efff;
    border: 1px solid #b3d7ff;
    border-radius: 4px;
    cursor: pointer;
    color: #333;
    transition: background-color 0.2s;
}

.copy-btn-home:hover {
    background-color: #cce5ff;
    border-color: #99ccff;
}

.copy-btn-home:active {
    background-color: #b3d7ff;
}

p {
    margin: 1em 0;
}

.discover-list li {
    margin-bottom: 1em;
}

.url-info {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-top: 0.2em;
}

/* Pricing page styles */
.pricing-tiers {
    display: flex;
    flex-direction: column;
    gap: 2em;
    margin: 2em 0;
}

.pricing-tier {
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 8px;
    max-width: 350px;
    margin: 20px auto;
    background-color: #fff;
}

.pricing-tier h3 {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 0.3em;
}

.pricing-tier .price-description {
    font-size: 0.9em;
    color: #333;
    margin-bottom: 1.5em;
}

.pricing-tier ul {
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
    margin-bottom: 2em;
}

.pricing-tier ul li {
    margin-bottom: 0.7em;
    font-size: 0.8em;
}

.subscription-buttons .cta-button {
    padding: 8px 15px;
    font-size: 0.9em;
    display: inline-block;
    text-decoration: none;
    border: 1px solid #6D49FF;
    color: #6D49FF;
    background-color: transparent;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.subscription-buttons .cta-button:hover {
    background-color: #6D49FF;
    color: white;
}

.subscription-buttons .cta-button:first-child {
    margin-right: 10px;
}

/* Blog page styles */
.blog-post {
    margin-bottom: 3em;
}

.blog-post h3 {
    margin-bottom: 0.3em;
}

.post-date {
    color: #666;
    font-size: 0.9em;
    margin-top: 0;
    margin-bottom: 1em;
}

.post-excerpt {
    margin-bottom: 0.5em;
}

.read-more {
    font-size: 0.9em;
}

footer {
    margin-top: 3em;
    padding-top: 1em;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9em;
    text-align: center;
}

footer p {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5em;
}

footer span {
    display: block;
    margin-top: 1em;
}

@media (max-width: 700px) {
    body {
        padding: 1ch;
        -webkit-text-size-adjust: 100%;
    }
    .container {
        padding-left: 1ch;
        padding-right: 1ch;
    }
    header h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1.2em;
    }
    #main-nav {
        text-align: left;
    }
    #main-nav ul {
        justify-content: flex-start;
    }
    nav a {
        margin: 0 0.5em 0 0;
        display: inline-block;
    }
    footer p {
        justify-content: center;
    }
}

/* Styles for analytics page from analytics.php */
.analytics-container { max-width: 900px; margin: 0 auto; padding: 20px; }
.site-title-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0; }
.site-title-header .main-title { font-size: 2em; font-weight: bold; color: #333; }
.site-title-header .site-domain { font-size: 1em; color: #555; }
.main-nav-v2 ul { list-style-type: none; padding: 0; margin: 10px 0 20px 0; display: flex; gap: 15px; justify-content: flex-end; }
.main-nav-v2 ul li a { text-decoration: none; color: #333; }
.analytics-header { font-size: 2.5em; font-weight: bold; margin-top: 20px; margin-bottom: 10px; }
.stats-overview { margin-bottom: 30px; }
.stats-overview p { font-size: 1.2em; margin: 5px 0; }
.graph-placeholder { background-color: #f9f9f9; border: 1px solid #eee; padding: 20px; text-align: center; margin-bottom: 30px; min-height: 200px; }
.graph-controls button { background-color: #f0f0f0; border: 1px solid #ddd; padding: 8px 12px; margin: 0 5px; border-radius: 5px; cursor: pointer; }
.data-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.data-section h3 { font-size: 1.3em; margin-bottom: 10px; color: #444; }
.data-section ul { list-style-type: none; padding: 0; }
.data-section ul li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #f0f0f0; }
.data-section ul li:last-child { border-bottom: none; }
.analytics-footer { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; font-size: 0.9em; color: #777; }
.analytics-footer p { margin: 5px 0; }
.analytics-footer a { color: #555; text-decoration: none; }

/* My URLs Table Styling */
.urls-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.9em; /* Slightly smaller font for compactness */
}

.urls-table th,
.urls-table td {
    border: 1px solid #ddd;
    padding: 6px; /* Reduced padding */
    text-align: left;
    vertical-align: middle;
}

.urls-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.urls-table td a {
    color: #007bff;
    text-decoration: none;
}

.urls-table td a:hover {
    text-decoration: underline;
}

.urls-table .status-active {
    color: green;
    font-weight: bold;
}

.urls-table .status-expired {
    color: red;
}

.urls-table .actions {
    white-space: nowrap; /* Keep buttons on one line if possible */
    text-align: center; /* Center action buttons */
}

.urls-table .action-btn {
    padding: 4px 8px;
    font-size: 0.85em;
    margin-right: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block; /* Allow margins and padding */
    color: #333;
    background-color: #f8f9fa;
}

.urls-table .action-btn:last-child {
    margin-right: 0;
}

.urls-table .action-btn.copy-btn {
    background-color: #e0efff; /* Light blue */
    border-color: #b3d7ff;
}

.urls-table .action-btn.copy-btn.copied {
    background-color: #28a745; /* Green for success */
    border-color: #218838;
    color: white;
}

.urls-table .action-btn.edit-btn {
    background-color: #fff3cd; /* Light yellow */
    border-color: #ffeeba;
    color: #856404;
}

.urls-table .action-btn.delete-btn {
    background-color: #f8d7da; /* Light red */
    border-color: #f5c6cb;
    color: #721c24;
}

.urls-table .action-btn:hover {
    opacity: 0.8;
    border-color: #aaa;
}

.no-urls-message {
    color: #555;
    font-style: italic;
}

.url-action-message {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.url-action-message.success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.url-action-message.error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Ensure long URLs or short codes don't break table layout */
.urls-table td:nth-child(1), /* Short Link column */
.urls-table td:nth-child(2) { /* Original URL column */
    word-break: break-all;
    max-width: 200px; /* Adjust as needed */
    overflow-wrap: break-word;
}

.urls-table td:nth-child(2) a {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive adjustments for smaller screens if needed */
@media (max-width: 768px) {
    .urls-table th,
    .urls-table td {
        font-size: 0.85em; /* Even smaller font on small screens */
        padding: 4px;
    }
    .urls-table .action-btn {
        font-size: 0.8em;
        padding: 3px 6px;
        margin-bottom: 3px; /* Stack buttons slightly on small screens if they wrap */
        display: block; /* Make buttons stack vertically if space is very tight */
        width: 90%; /* Make them take more width if stacked */
        margin-left: auto;
        margin-right: auto;
    }
    .urls-table .actions {
        white-space: normal; /* Allow wrapping for buttons */
    }

    .urls-table td:nth-child(1),
    .urls-table td:nth-child(2) {
        max-width: 120px; /* Adjust for smaller screens */
    }
}

/* Edit URL Form Styles */
.url-details {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.url-details p {
    margin: 8px 0;
}

.edit-form {
    max-width: 600px;
}

.edit-form .form-group {
    margin-bottom: 20px;
}

.edit-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.edit-form input[type="url"],
.edit-form input[type="datetime-local"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.edit-form .small-note {
    color: #666;
    font-size: 0.85em;
    margin-top: 5px;
}

.form-actions {
    margin-top: 25px;
}

.form-actions .save-btn {
    padding: 8px 16px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.form-actions .save-btn:hover {
    background-color: #218838;
}

.form-actions .cancel-btn {
    padding: 8px 16px;
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.form-actions .cancel-btn:hover {
    background-color: #e2e6ea;
    text-decoration: none;
}

.success-message {
    padding: 10px;
    border-radius: 4px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724 !important;
    margin-bottom: 15px;
}

.error-message {
    padding: 10px;
    border-radius: 4px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24 !important;
    margin-bottom: 15px;
}

/* Settings Page Styles */
.settings-section {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fafafa;
}

.settings-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.account-info {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.account-info p {
    margin: 8px 0;
    line-height: 1.5;
}

.settings-form {
    max-width: 400px;
}

.settings-form .form-group {
    margin-bottom: 15px;
}

.settings-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.settings-form input[type="text"],
.settings-form input[type="email"],
.settings-form input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.settings-form input[type="text"]:focus,
.settings-form input[type="email"]:focus,
.settings-form input[type="password"]:focus {
    border-color: #6D49FF;
    outline: none;
    box-shadow: 0 0 5px rgba(109, 73, 255, 0.2);
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #6D49FF;
    border-color: #6D49FF;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2366d1;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Danger Zone Styles */
.danger-zone {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.danger-zone h3 {
    color: #dc3545;
    border-bottom-color: #dc3545;
}

.warning-text {
    color: #721c24;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Success and Error Messages for Settings */
.settings-section .success-message,
.settings-section .error-message {
    margin-bottom: 20px;
}

/* Responsive adjustments for settings */
@media (max-width: 768px) {
    .settings-section {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .settings-form {
        max-width: 100%;
    }
    
    .account-info {
        padding: 12px;
    }
}

/* Graph styles for analytics */
.graph-container {
    height: 250px;
    width: 100%;
    margin: 20px 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    border-bottom: 1px solid #ddd;
}

.bar-graph {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    width: 100%;
    height: 100%;
}

.bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    flex: 1;
    margin: 0 2px;
}

.bar {
    width: 70%;
    background-color: #007bff;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 0.3s ease;
    min-height: 5px;
}

.bar-value {
    position: absolute;
    top: -20px;
    width: 100%;
    text-align: center;
    font-size: 12px;
}

.bar-label {
    margin-top: 5px;
    font-size: 11px;
    text-align: center;
    transform: rotate(45deg);
    transform-origin: left bottom;
    white-space: nowrap;
}

/* Improved mobile styles */
@media (max-width: 700px) {
    body {
        padding: 1.5ch;
        max-width: 100%;
    }
    
    .container {
        flex-direction: column;
        gap: 1em;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    h2 {
        font-size: 1.25em;
    }
    
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav a {
        margin: 0 0.2em; /* Adjust spacing for smaller screens */
    }
    
    /* Responsive table fixes */
    .urls-table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    
    .urls-table th,
    .urls-table td {
        padding: 4px;
        font-size: 0.85em;
    }
    
    .urls-table td:nth-child(2) {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .action-btn {
        padding: 3px 6px;
        font-size: 0.75em;
    }
    
    /* Form responsive fixes */
    input[type="url"],
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="datetime-local"] {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Graph responsive fixes */
    .bar-container {
        margin: 0 1px;
    }
    
    .bar {
        width: 90%;
    }
    
    .bar-value {
        font-size: 10px;
    }
    
    .bar-label {
        font-size: 9px;
    }
}

/* --- Authentication Page Styles --- */
.auth-container {
    background-color: #ffffff;
    padding: 2em 2.5em; /* Adjusted padding */
    border-radius: 8px; /* Matched pricing page */
    border: 1px solid #ddd; /* Replaced shadow with border */
    max-width: 400px; /* Reduced max-width */
    margin: 2em auto;
    text-align: center;
}

.auth-container h2 {
    font-size: 1.4em; /* Reduced font size */
    margin-bottom: 0.2em;
    font-weight: 600;
}

.auth-container .auth-subtitle {
    color: #666;
    margin-bottom: 2em;
    font-size: 0.9em; /* Set smaller font size */
}

.auth-container .form-group {
    margin-bottom: 1em;
    text-align: left;
}

.auth-container input[type="text"],
.auth-container input[type="email"],
.auth-container input[type="password"] {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.9em; /* Set smaller font size */
}

.auth-container .btn-full {
    width: 100%;
    padding: 0.8em;
    font-size: 0.85em; /* Reduced font size */
    font-weight: 600;
    border-radius: 8px;
    background-color: #6D49FF;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    opacity: 1;
}

.auth-container .btn-full:hover {
    background-color: #5a3dd9;
    opacity: 1;
}

.auth-container .btn-outline {
    width: 100%;
    padding: 0.8em;
    font-size: 0.85em; /* Reduced font size */
    font-weight: 600;
    border-radius: 8px;
    background-color: #fff;
    color: #6D49FF;
    border: 1px solid #6D49FF;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.auth-container .btn-outline:hover {
    background-color: #6D49FF;
    color: #fff;
}

.auth-container .google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.7em;
    font-size: 0.85em; /* Reduced font size */
    border-radius: 8px;
    background-color: #fff;
    color: #444;
    border: 1px solid #ddd;
    text-decoration: none;
    margin-bottom: 1em;
    transition: background-color 0.2s;
}

.auth-container .google-btn:hover {
    background-color: #f7f7f7;
}

.auth-container .google-btn img {
    width: 20px;
    margin-right: 12px;
}

.auth-container .separator-or {
    display: flex;
    align-items: center;
    text-align: center;
    color: #ccc;
    margin: 1.5em 0;
}

.auth-container .separator-or::before,
.auth-container .separator-or::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.auth-container .separator-or:not(:empty)::before {
    margin-right: .5em;
}

.auth-container .separator-or:not(:empty)::after {
    margin-left: .5em;
}

.auth-container .auth-link {
    display: block;
    margin-top: 1.5em;
    font-size: 0.8em; /* Reduced font size */
}

.auth-container .subtle-link {
    font-size: 0.8em; /* Reduced font size */
    color: #6D49FF;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

.auth-container .subtle-link:hover {
    text-decoration: underline;
}

.auth-container .form-footer {
    font-size: 0.7em; /* Reduced font size */
    color: #888;
    margin-top: 1.5em;
}

.auth-container .form-footer-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    text-align: left;
}

/* General button styling */
.action-btn {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s, box-shadow 0.2s;
    display: inline-block; /* Ensures proper alignment */
    vertical-align: middle; /* Aligns with other buttons/links */
    margin: 2px;
}

.action-btn:hover {
    background-color: #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.edit-btn {
    background-color: #e0eafc;
    border-color: #adcafc;
}

.delete-btn {
    background-color: #fce0e0;
    border-color: #fca0a0;
}

.copy-btn {
    padding: 4px 8px;
    font-size: 0.8em;
    background-color: #e0efff;
    border: 1px solid #b3d7ff;
    border-radius: 3px;
    cursor: pointer;
    color: #333;
    margin-top: 5px;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background-color: #cce5ff;
    border-color: #99ccff;
}

.copy-btn.copied {
    background-color: #d4edda; /* Light green */
    border-color: #c3e6cb;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s;
}

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

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
}

.modal-actions {
    margin-top: 20px;
}

.modal-actions .action-btn {
    margin: 0 10px;
}

#confirm-delete-btn {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

#confirm-delete-btn:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* FAQ Section */
.faq-container {
    max-width: 700px;
    margin: 2rem auto;
}

.faq-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    background-color: #fff;
    color: #333;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1rem;
    transition: background-color 0.2s ease;
    position: relative;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    color: #777;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.faq-question.active::after {
    content: "−";
}

.faq-answer {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.faq-answer p {
    line-height: 1.6;
    color: #555;
}