* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f5f5f7;
    color: #333;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 20px;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    width: 100%;
    padding-top: 10px;
}

h1 {
    color: #3498db;
    text-align: center;
}

.version-badge {
    font-size: 12px;
    font-weight: 600;
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
    padding: 3px 6px;
    border-radius: 12px;
    margin-left: 10px;
    position: relative;
    top: -8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    letter-spacing: 0.5px;
}

/* Mobile styles for title and version badge */
@media (max-width: 480px) {
    .title-container {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    h1 {
        text-align: left;
        font-size: 24px;
        width: 100%;
    }
    
    .version-badge {
        position: static;
        margin-left: 0;
        margin-top: 4px;
        align-self: flex-start;
    }
}

#notification-container {
    width: 100%;
    max-width: 500px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.notification-card {
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-in-out;
    position: relative;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notification-card h3 {
    margin-bottom: 0;
    color: #3498db;
    flex-grow: 1;
}

.delete-button {
    background-color: transparent;
    color: #999;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: 8px;
}

.delete-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #e74c3c;
}

.delete-button:active {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
}

.notification-card p {
    color: #666;
    font-size: 14px;
}

.notification-card .timestamp {
    color: #999;
    font-size: 12px;
    margin-top: 8px;
    text-align: right;
}

#no-notifications {
    text-align: center;
    color: #999;
    padding: 20px;
}

.ios-instruction {
    background-color: #f0f8ff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.ios-instruction p {
    font-weight: bold;
    margin-bottom: 10px;
}

.ios-instruction ol {
    padding-left: 20px;
}

.ios-instruction li {
    margin-bottom: 8px;
}

.ios-instruction span {
    display: inline-block;
    background-color: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    margin: 0 4px;
}

.buttons-container {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
    justify-content: center;
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: 10px;
}

.test-button, .clear-all-button {
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

/* Mobile styles for buttons */
@media (max-width: 480px) {
    .buttons-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .test-button, .clear-all-button {
        width: 100%;
    }
}

.test-button {
    background-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.token-display {
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    border-left: 4px solid #9b59b6;
}

.token-display h3 {
    color: #9b59b6;
    margin-bottom: 10px;
    font-size: 16px;
}

.token-value {
    background-color: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
    margin-bottom: 12px;
    border: 1px solid #eee;
    color: #333;
    max-height: 100px;
    overflow-y: auto;
}

.copy-button {
    background-color: #9b59b6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    width: 100%;
}

.copy-button:hover {
    background-color: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.copy-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(155, 89, 182, 0.3);
}

.clear-all-button {
    background-color: #e74c3c;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.test-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.clear-all-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.test-button:active, .clear-all-button:active {
    transform: translateY(0);
}

.test-button:active {
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.4);
}

.clear-all-button:active {
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}/*
 Toast notification styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    max-width: 100%;
    pointer-events: none;
}

.toast {
    background-color: white;
    color: #333;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    min-width: 250px;
    max-width: 350px;
    animation: slideIn 0.3s ease-out forwards;
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    position: relative;
}

.toast.success {
    border-left: 4px solid #2ecc71;
}

.toast.error {
    border-left: 4px solid #e74c3c;
}

.toast.info {
    border-left: 4px solid #3498db;
}

.toast.warning {
    border-left: 4px solid #f39c12;
}

.toast-content {
    flex-grow: 1;
    padding-right: 10px;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.toast-message {
    font-size: 13px;
    color: #666;
    word-break: break-word;
}

.toast-close {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin-left: 8px;
    align-self: flex-start;
}

.toast-close:hover {
    color: #666;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.1);
}

.toast.success .toast-progress {
    background-color: #2ecc71;
}

.toast.error .toast-progress {
    background-color: #e74c3c;
}

.toast.info .toast-progress {
    background-color: #3498db;
}

.toast.warning .toast-progress {
    background-color: #f39c12;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Mobile styles for toast notifications */
@media (max-width: 480px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        align-items: stretch;
    }
    
    .toast {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
}