* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

h2 {
    color: #555;
    margin-bottom: 15px;
}

.cookie-jar {
    margin: 20px 0;
}

.cookie-list {
    margin: 30px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    min-height: 150px;
}

#cookies-list {
    list-style-type: none;
}

.cookie-item {
    padding: 12px;
    margin: 8px 0;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-name {
    font-weight: bold;
    color: #333;
}

.cookie-value {
    color: #666;
    word-break: break-all;
    margin-left: 10px;
    flex-grow: 1;
    font-family: monospace;
    white-space: pre-wrap;
}

.cookie-actions {
    display: flex;
    gap: 5px;
}

.cookie-editor {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    margin-top: 5px;
}

.decoded-value {
    background-color: #f0f8ff;
    padding: 8px;
    border-radius: 4px;
    border-left: 3px solid #4a6fa5;
    margin-top: 5px;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
}

.decoded-value pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: monospace;
}

.cookie-details {
    font-size: 0.8em;
    color: #777;
    margin-top: 5px;
    font-style: italic;
}

.tab-container {
    margin-top: 10px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.tab-button {
    padding: 8px 15px;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
}

.tab-button.active {
    border-bottom: 2px solid #4a6fa5;
    color: #4a6fa5;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.save-cookie {
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.save-cookie:hover {
    background-color: #219653;
}

.decode-base64 {
    background-color: #9b59b6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.decode-base64:hover {
    background-color: #8e44ad;
}

.delete-cookie {
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    margin-left: 10px;
}

.delete-cookie:hover {
    background-color: #ff4f4f;
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

button {
    background-color: #4a6fa5;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3a5a80;
}

#delete-all-btn {
    background-color: #e74c3c;
}

#delete-all-btn:hover {
    background-color: #c0392b;
}

#create-cookie-btn {
    background-color: #27ae60;
}

#create-cookie-btn:hover {
    background-color: #219653;
}

#no-cookies-message {
    color: #888;
    text-align: center;
    padding: 20px;
}

.manual-decoder {
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#manual-input {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    margin-bottom: 10px;
    resize: vertical;
}

#manual-decode-btn {
    background-color: #9b59b6;
    color: white;
    margin-bottom: 15px;
}

#manual-decode-btn:hover {
    background-color: #8e44ad;
}

#manual-decoded-output {
    min-height: 40px;
    margin-top: 15px;
    text-align: left;
}

@media (max-width: 500px) {
    .container {
        padding: 15px;
    }
    
    button {
        padding: 8px 15px;
    }
}