:root {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --input-bg: #2d2d2d;
    --input-border: #404040;
    --button-bg: #404040;
    --button-hover: #505050;
    --error-color: #ff4444;
    --success-color: #44ff44;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #1a1a1a;
    color: #0f1419;
    min-height: 100vh;
    display: flex;
    
    align-items: center;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    box-sizing: border-box;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.search-form {
   
    
  
    
    width: 100%;
}

.input-group {
    display: flex;
    gap: 10px;
}

input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #404040;
    
    background-color: #333333;
    color: #ffffff;
    font-size: 16px;
}

input[type="text"]::placeholder {
    color: #888888;
}

button {
    padding: 12px 24px;
    background-color: #4a90e2;
    color: white;
    border: none;
    
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #357abd;
}

.message {
    margin-top: 1rem;
    padding: 1rem;
   
    text-align: center;
}

.error {
    background-color: rgba(255, 68, 68, 0.1);
    color: var(--error-color);
}

.success {
    background-color: rgba(68, 255, 68, 0.1);
    color: var(--success-color);
}

/* Styles pour le loading spinner */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles pour la liste de tokens */
.tokens-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.token-row {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 20px;
    align-items: start;
}

.token-column {
    width: 100%;
}

.button-column {
    justify-content: flex-end;
}

.action-bar {
   
    gap: 10px;
    margin-bottom: 20px;
    justify-content: flex-end;
}

.action-button {
    padding: 6px;
    background-color: #536471;
    color: white;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 13px;
    min-width: 120px;
    text-align: center;
}

.action-button:hover {
    background-color: #3d4a54;
}

.token-text {
    width: 100%;
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #e1e8ed;
    color: #0f1419;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    outline: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 100px;
    box-sizing: border-box;
}

.token-text a {
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
}

.token-text:focus {
    border-color: #1da1f2;
}

.twitter-link {
    color: #1da1f2;
    text-decoration: none;
    font-weight: 500;
}

.token-link {
    color: #1da1f2;
    text-decoration: none;
    font-weight: 500;
}

.copy-button {
    padding: 6px;
    background-color: #536471;
    color: white;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 13px;
    min-width: 40px;
    text-align: center;
}

.copy-button:hover {
    background-color: #3d4a54;
}

.copy-button.copied {
    background-color: #17bf63;
}

/* Styles pour la grille de tokens */
.tokens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.token-card {
    background-color: #2d2d2d;
    
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.token-card:hover {
    transform: translateY(-2px);
}

.token-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #ffffff;
}

.token-creator {
    margin: 0 0 10px 0;
    color: #888888;
    font-size: 14px;
}

.token-description {
    margin: 10px 0 0 0;
    color: #cccccc;
    font-size: 14px;
    line-height: 1.4;
}

/* Styles pour la page curation_board */
.curation-info {
    background-color: #2d2d2d;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.curation-info h2 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
}

.template-container {
    margin-bottom: 20px;
}

.template-buttons-row {
   
    gap: 10px;
    margin-bottom: 10px;
    justify-content: flex-end;
}

.template-text-column {
    width: 100%;
}

.template-text {
    min-height: 100px;
    border: 1px solid #ccc;
    padding: 15px;
    margin: 10px 0;
    background-color: #fff;
    width: 460px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.valid-tag {
    color: #0066cc;
}

.template-text p {
    margin: 0;
    padding: 0;
    min-height: 1.5em;
}

.template-text p:empty {
    min-height: 1.5em;
}

.placeholder-tag {
    display: inline-block;
    background-color: #e8f5fe;
    color: #1da1f2;
    padding: 1px 4px;
    border-radius: 3px;
    margin: 0 2px;
    cursor: move;
    user-select: none;
    border: 1px solid #1da1f2;
    font-size: 12px;
    vertical-align: middle;
    line-height: 1.2;
}

.placeholder-tag:hover {
    background-color: #d1e9fc;
}

.template-text a {
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
}

.template-button {
    padding: 6px;
    background-color: #414d57;
    color: white;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 13px;
    min-width: 80px;
    text-align: center;
}

.template-button:hover {
    background-color: #3d4a54;
} 