/* UTM Builder Styles */
.tool-layout {
    display: flex;
    gap: 30px;
}

.tool-main {
    flex: 1;
    min-width: 0;
}

.tool-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.tool-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 25px;
}

.tool-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
}

.tool-card h2 i {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.generated-url-card {
    display: none;
}

.url-output {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 15px 0;
    word-break: break-all;
    font-family: monospace;
    font-size: 0.95rem;
}

.url-actions {
    display: flex;
    gap: 10px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-actions {
    display: flex;
    gap: 10px;
}

.history-table-container {
    overflow-x: auto;
}

#historyTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

#historyTable th {
    text-align: left;
    padding: 12px 15px;
    background: #f8f9fa;
    font-weight: 600;
    color: var(--dark-color);
}

#historyTable td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

#historyTable tr:hover {
    background: rgba(67, 97, 238, 0.03);
}

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

.action-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

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

.sidebar-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 25px;
}

.sidebar-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-card h3 i {
    color: var(--primary-color);
}

.social-share {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-btn.twitter { background: #1da1f2; }
.social-btn.linkedin { background: #0077b5; }
.social-btn.facebook { background: #4267b2; }
.social-btn.copy { background: #666; }

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.related-tools {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-tools li {
    margin-bottom: 10px;
}

.related-tools a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.related-tools a:hover {
    color: var(--primary-color);
}

.related-tools a i {
    width: 20px;
    text-align: center;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-color);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .tool-layout {
        flex-direction: column;
    }
    
    .tool-sidebar {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .history-actions {
        width: 100%;
        justify-content: flex-end;
    }
}