* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 40px;
    border: 1px solid #2a2a2a;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #2a2a2a;
}

.header h1 {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.subtitle {
    color: #888;
    font-size: 1.1em;
}

.main-content {
    margin-bottom: 30px;
}

.paste-form {
    display: flex;
    flex-direction: column;
}

textarea {
    width: 100%;
    min-height: 400px;
    padding: 20px;
    background: #0f0f0f;
    border: 2px solid #2a2a2a;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    resize: vertical;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #4a4a4a;
    box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.2);
}

textarea::placeholder {
    color: #555;
}

.form-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn-submit {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    color: #ffffff;
    border: 2px solid #4a4a4a;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
    border-color: #5a5a5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.info-text {
    color: #888;
    font-size: 0.9em;
    text-align: center;
}

.paste-info {
    background: #0f0f0f;
    border: 2px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a2a;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #888;
    font-weight: 500;
}

.info-value {
    color: #e0e0e0;
    font-weight: bold;
}

.info-value.highlight {
    color: #4CAF50;
    font-size: 1.1em;
}

.paste-content {
    background: #0f0f0f;
    border: 2px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2a2a2a;
}

.content-header h2 {
    color: #ffffff;
    font-size: 1.3em;
}

.btn-copy {
    background: #2a2a2a;
    color: #ffffff;
    border: 2px solid #4a4a4a;
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #3a3a3a;
    border-color: #5a5a5a;
}

.paste-text {
    background: #0a0a0a;
    padding: 20px;
    border-radius: 6px;
    color: #e0e0e0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    border: 1px solid #1a1a1a;
    max-height: 600px;
    overflow-y: auto;
}

.actions {
    text-align: center;
    margin-top: 30px;
}

.btn-back {
    display: inline-block;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    color: #ffffff;
    border: 2px solid #4a4a4a;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-back:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
    border-color: #5a5a5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.error-message {
    text-align: center;
    padding: 40px 20px;
    background: #0f0f0f;
    border: 2px solid #4a2a2a;
    border-radius: 8px;
    margin-bottom: 30px;
}

.error-message h2 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.error-message p {
    color: #888;
    font-size: 1.1em;
}

.footer {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #2a2a2a;
    color: #666;
    font-size: 0.9em;
}

.footer a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #66BB6A;
    text-decoration: underline;
}

.link-text {
    color: #4CAF50;
    word-break: break-all;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0f0f0f;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

/* API Documentation Styles */
.api-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2a2a2a;
}

.api-section:last-of-type {
    border-bottom: none;
}

.api-section h2 {
    color: #ffffff;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3a3a3a;
}

.api-section h3 {
    color: #e0e0e0;
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 15px;
}

.api-section h4 {
    color: #b0b0b0;
    font-size: 1.1em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.api-section p {
    color: #c0c0c0;
    margin-bottom: 15px;
    line-height: 1.8;
}

.endpoint-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #0f0f0f;
    border-radius: 6px;
    border-left: 4px solid #4a4a4a;
}

.method-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method-post {
    background: #4CAF50;
    color: #ffffff;
}

.method-get {
    background: #2196F3;
    color: #ffffff;
}

.endpoint-url {
    color: #4CAF50;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 1.1em;
}

.code-block {
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 20px;
    margin: 15px 0;
    overflow-x: auto;
}

.code-block code {
    color: #e0e0e0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre;
}

.code-block pre {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre;
    overflow-x: auto;
}

.example-section {
    margin-bottom: 30px;
}

.example-section h3 {
    color: #ffffff;
    font-size: 1.4em;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #4CAF50;
}

.notes-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.notes-list li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #0f0f0f;
    border-left: 3px solid #4CAF50;
    border-radius: 4px;
    color: #c0c0c0;
}

.notes-list li:before {
    content: "✓ ";
    color: #4CAF50;
    font-weight: bold;
    margin-right: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    textarea {
        min-height: 300px;
    }
    
    .content-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .info-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .api-section h2 {
        font-size: 1.5em;
    }
    
    .endpoint-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .code-block {
        padding: 15px;
        font-size: 12px;
    }
}

