:root {
    --color-primary: #6366f1;
    --color-secondary: #8b5cf6;
    --color-success: #10b981;
    --color-info: #3b82f6;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-dark: #1e1b4b;
    --color-darker: #0f172a;
    --color-light: #f1f5f9;
    --color-border: #334155;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--color-darker) 0%, var(--color-dark) 100%);
    color: var(--color-text);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 48px;
    animation: spin 3s linear infinite;
    display: inline-block;
    transform-origin: center;
}

.logo-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transform-origin: center;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.header h1 {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header h1 .suite-text {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #e6eaf2;
    background-clip: unset;
    color: #e6eaf2;
}

.subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-top: 10px;
}

.btn-back {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(168, 85, 247, 0.2);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.btn-back:hover {
    background: rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.content {
    margin-bottom: 30px;
}

.card {
    background: rgba(30, 27, 75, 0.5);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--color-border);
}

.card h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--color-text);
}

.field {
    margin-bottom: 22px;
}

.field label {
    display: block;
    margin-bottom: 10px;
    color: var(--color-text);
    font-weight: 600;
}

.textarea {
    width: 100%;
    min-height: 200px;
    resize: vertical;
    padding: 14px 16px;
    background: var(--color-darker);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.55;
    transition: all 0.3s ease;
}

.textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.textarea-output {
    min-height: 200px;
}

.meta {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 13px;
}

.meta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.link-btn {
    border: 0;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    transition: all 0.25s ease;
    font-weight: 600;
}

.link-btn:hover {
    transform: translateY(-1px);
    background: rgba(148, 163, 184, 0.08);
}

.link-btn.danger {
    border-color: rgba(239, 68, 68, 0.35);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 24px;
}

.btn {
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-info), #2563eb);
}

.btn-info {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.btn-warning {
    background: linear-gradient(135deg, var(--color-warning), #d97706);
}

.info-section {
    margin-top: 22px;
}

.info-card {
    background: rgba(15, 23, 42, 0.55);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(51, 65, 85, 0.65);
}

.info-card h3 {
    font-size: 18px;
    margin-bottom: 14px;
}

.info-card ul {
    margin-left: 18px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .card {
        padding: 20px;
    }
    
    .textarea,
    .textarea-output {
        min-height: 170px;
    }
    
    .meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .meta-actions {
        width: 100%;
        justify-content: flex-start;
    }
}
