/* Общий макет */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 992px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Стили виджетов */
.widget-container {
    padding: 1.5rem;
    background-color: var(--widget-bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.widget-container h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-primary-color);
}

/* Стили форм */
.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background-color: var(--input-bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.input-group .icon {
    padding: 0 1rem;
    color: var(--text-secondary-color);
    font-size: 1rem;
}

.input-group input,
textarea#bulk-urls-input {
    flex-grow: 1;
    width: 100%;
    border: none;
    background: transparent;
    padding: 0.8rem 0;
    font-size: 1rem;
    color: var(--text-primary-color);
    outline: none;
}

textarea#bulk-urls-input {
    padding: 0.8rem;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.main-button {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--accent-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.main-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.description {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.error-message {
    color: #e53935;
    background-color: rgba(229, 57, 53, 0.1);
    border: 1px solid rgba(229, 57, 53, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    display: none;
}

/* Стили таблицы */
.table-container {
    overflow-x: auto;
}

#links-table {
    width: 100%;
    border-collapse: collapse;
}

#links-table th,
#links-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

#links-table th {
    font-weight: 600;
    color: var(--text-secondary-color);
    font-size: 0.9rem;
}

#links-table td {
    color: var(--text-primary-color);
    font-size: 0.95rem;
}

.short-link-cell a {
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
}
.short-link-cell a:hover {
    text-decoration: underline;
}

.long-url-cell {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Courier New', Courier, monospace;
}
.long-url-cell a{
    color: var(--text-secondary-color);
    text-decoration: none;
}
.long-url-cell a:hover {
    text-decoration: underline;
}

.actions-cell {
    white-space: nowrap;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary-color);
    font-size: 1rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    transition: background-color 0.2s, color 0.2s;
}

.action-btn:hover {
    background-color: var(--hover-color);
}

.action-btn.copy-btn {
    color: #007bff;
}
.action-btn.copy-btn:hover {
    color: #fff;
    background-color: #007bff;
}

.action-btn.delete-btn {
    color: #dc3545;
}
.action-btn.delete-btn:hover {
    color: #fff;
    background-color: #dc3545;
}
